-
Checked other resources
Commit to Help
Example Codetools = [repl, retriever_tool, add, subtract, multiply, divide, modulus, exponentiate, integer_divide,tavily] DescriptionIn case I have multiple tools in the 'tools', is that possible for me to define the path? Example: I like to use 'retriever_tool' first and 'repl' later... is that possible to define that by human in the code?
System InfoName: langgraph Name: langchain |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, but you should do this by combining together several different chains or agents.
If you need to use agents, then I'd recommend using langgraph for this: https://langchain-ai.github.io/langgraph/concepts/multi_agent/#multi-agent-collaboration If you can do it using pure chains, then you can just use LCEL and chain everything together |
Beta Was this translation helpful? Give feedback.
Yes, but you should do this by combining together several different chains or agents.
add, multiply
,divide
and finallymultiply
again, or maybe the agent will need to use the retrieve tool ~5 times with different queries).If you need to use agents, then I'd recommend using langgraph for this:
https://langchain-ai.github.io/langgraph/concepts/multi_agent/#multi-agent-collaboration
https://langchain-ai.github.io/langgraph/how-tos/subgraph/
If you can do it using pure chai…