TheDocumentation Index
Fetch the complete documentation index at: https://docs.conversimple.com/llms.txt
Use this file to discover all available pages before exploring further.
ConversimpleAgent provides several callback methods that you can override in your agent class to react to different events during a conversation.
Callback Methods
on_conversation_started(conversation_id: str)
Called when a new conversation starts.
The unique identifier for the started conversation.
on_conversation_ended(conversation_id: str)
Called when a conversation ends.
The unique identifier for the ended conversation.
on_tool_called(tool_call)
Called when the platform requests your agent to execute a tool.
An object containing details about the tool call, including
call_id, tool_name, arguments, and conversation_id.on_tool_completed(call_id: str, result: Any)
Called after a tool execution has successfully completed and its result has been sent to the platform.
The unique identifier of the tool call.
The result returned by the executed tool.
on_error(error_type: str, message: str, details: dict)
Called when an error occurs within the agent or is reported by the platform.
The type of error (e.g.,
connection_error, tool_execution_error).A descriptive error message.
A dictionary containing additional error details.
on_config_update(config: Dict[str, Any])
Called when the agent receives a configuration update from the platform.
A dictionary containing the updated configuration.