Skip to content
Discussion options

You must be logged in to vote

Yes, but you should do this by combining together several different chains or agents.

  • Use a chain if you know the number of steps that each interaction with the user involves.
  • Use agents if you don't know how many steps a given step of the interaction will involve (e.g., maybe the agent will need to use add, multiply, divide and finally multiply 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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mraguth
Comment options

@eyurtsev
Comment options

Answer selected by mraguth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants