mirror of
https://github.com/hwchase17/langchain.git
synced 2026-04-03 19:04:23 +00:00
23 lines
563 B
Plaintext
23 lines
563 B
Plaintext
---
|
|
sidebar_position: 3
|
|
---
|
|
# How to use toolkits
|
|
|
|
|
|
Toolkits are collections of tools that are designed to be used together for specific tasks. They have convenient loading methods.
|
|
For a complete list of available ready-made toolkits, visit [Integrations](/docs/integrations/toolkits/).
|
|
|
|
All Toolkits expose a `get_tools` method which returns a list of tools.
|
|
You can therefore do:
|
|
|
|
```python
|
|
# Initialize a toolkit
|
|
toolkit = ExampleTookit(...)
|
|
|
|
# Get list of tools
|
|
tools = toolkit.get_tools()
|
|
|
|
# Create agent
|
|
agent = create_agent_method(llm, tools, prompt)
|
|
```
|