AgentListener
A concrete orchestration class that manages the logging lifecycle.
Wraps an AgentLogger and manages the concurrent listening task
whilst piping events into the logger.
listen- Starts the async task that receives chunksclose- Cancels the listening task
set_default_agent_listener
Set the default agent listener for all agents and agentic functions in the current scope.
This is the StandardListener by default.
The listener constructor for logging an agent or agentic function’s activity and chat history.
If None, no listener will be used.
If True, is only for this Context.