A2A Logging of context between orchestrator and assistants #962
|
Hi, I'm trying a mutli agent architecture with an master/orchestrator and some assistants. Is there a way to see what are the messages echnages between the master and the assistants ? I've seen some data here in the logs strands.multiagent.a2a.executor |but want I'm looking for is the inforamtion send from the master agent to the asssistant. Regards |
Replies: 1 comment
|
Hi @thebigcosinus, thanks for the question, and sorry it sat this long without a reply. The logs you found in from strands.hooks import BeforeToolCallEvent
def log_outgoing(event: BeforeToolCallEvent) -> None:
print(f"tool: {event.tool_use['name']}, input: {event.tool_use['input']}")
orchestrator.add_hook(log_outgoing)The matching Two other angles. After a run, |
Hi @thebigcosinus, thanks for the question, and sorry it sat this long without a reply.
The logs you found in
strands.multiagent.a2a.executorare the assistant's server side. What you actually want is the message the orchestrator sends, and that's easiest to capture on the orchestrator itself. Why? Because when the master calls an assistant through the A2A client tools, the outgoing message is just the tool input. A hook shows it directly:The matching
AfterToolCallEventgive…