on_conversation_started(conversation_id: str)on_conversation_ended(conversation_id: str)on_tool_called(tool_call)on_tool_completed(call_id, result)on_error(error_type: str, message: str, details: dict)
Core Concepts
Events
Handle conversation lifecycle events.
Your agent can react to events that occur during the conversation lifecycle. This is done by implementing callback methods in your agent class.
Here are the available callback methods:
You can use these callbacks to manage state, log events, or perform any other actions in response to the conversation’s progress.