π€ wow interesting, but looks like ur tying a tool run to an external state other than the agent-state ? Not sure if thats the way FnTool is intented to be used π I maybe wrong here, but passing a callback fn fells like it would work as long as the previous component sends the correct data in the output_keys or if ur passing it in as partial_dict π
hmm, let me make it harder now π , i want to trigger the subagent or llm, with this function_callback. so the llm can use it only when the the callback received