mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-08 13:50:00 +00:00
Doc refactor (#6300)
Co-authored-by: jacoblee93 <jacoblee93@gmail.com> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
15
docs/snippets/modules/agents/tools/get_started.mdx
Normal file
15
docs/snippets/modules/agents/tools/get_started.mdx
Normal file
@@ -0,0 +1,15 @@
|
||||
```python
|
||||
from langchain.agents import load_tools
|
||||
tool_names = [...]
|
||||
tools = load_tools(tool_names)
|
||||
```
|
||||
|
||||
Some tools (e.g. chains, agents) may require a base LLM to use to initialize them.
|
||||
In that case, you can pass in an LLM as well:
|
||||
|
||||
```python
|
||||
from langchain.agents import load_tools
|
||||
tool_names = [...]
|
||||
llm = ...
|
||||
tools = load_tools(tool_names, llm=llm)
|
||||
```
|
Reference in New Issue
Block a user