How to dynamically add/remove tools in a tool_use_behavior="run_llm_again"
-loop
#767
Labels
question
Question about using the SDK
Please read this first
Question
I'm building an agent that's often running multiple tool calls sequentially, and sometimes tool
A
will 'unlock' toolsB
,C
, andD
. But I so far haven't found a way to 'inject' those during an automatedrun_llm_again
loop. And I'm really dreading writing all the logic required to manually handle the run loop.I've attempted using the
Hooks
to dynamically add new tools, I've been trying to work with various differentAgent
s as tools, where the tools of thoseAgent
s are added dynamically through the hooks. The only thing that's semi worked for me is to use thehandoff
feature, but then I can't give control back to the 'main' agent.My agent's flow will normally be like:
Runner
startsRunner
exitsBut this is a workflow that I can't currently figure out. Is there a way?
The text was updated successfully, but these errors were encountered: