Skip to content
Discussion options

You must be logged in to vote

Hi @Rishav-dev-star. Good news first: in most cases you don't need to wire this up yourself. (And apologies for the wait; this reply is long overdue.)

When a tool returns, its result goes back into the conversation, the model reads it, and the model passes whatever values it needs as input to the next tool it calls. So the main lever is making your tool descriptions and return values clear enough that the model knows what to feed into the second tool. This is the default agent loop behavior, nothing extra to configure.

If you need the chaining to be deterministic rather than model-decided, you have a few options. The simplest is plain Python: have one tool function call the other function…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yonib05
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