Currently I am working on implementing a system of several agents executing several tasks in a chain through Process.hierarchical , at the end of the task of the first agent I wanted to take its result and pass it to a function to do something and then continue executing the others agents, I found a parameter " callback=
" that the task can receive, which simply executes a function after executing the specific task, but I need to pass the result from the agent that performed this task to this function, how do I get this result only from this first agent while the others will still be executed in chain?
If you can’t get the agent’s response in the middle of the chain execution, I would like to know if there is a way to get the response from a single specific agent at the end?