RunResponse Attributes

AttributeTypeDefaultDescription
contentAnyNoneContent of the response.
content_typestr"str"Specifies the data type of the content.
thinkingstrNoneAny thinking content the model produced (used by Anthropic models).
reasoning_contentstrNoneAny reasoning content the model produced.
messagesList[Message]NoneA list of messages included in the response.
metricsDict[str, Any]NoneUsage metrics of the run.
modelstrNoneThe model used in the run.
model_providerstrNoneThe model provider used in the run.
run_idstrNoneRun Id.
agent_idstrNoneAgent Id for the run.
session_idstrNoneSession Id for the run.
toolsList[Dict[str, Any]]NoneList of tools provided to the model.
imagesList[Image]NoneList of images the model produced.
videosList[Video]NoneList of videos the model produced.
audioList[Audio]NoneList of audio snippets the model produced.
response_audioModelResponseAudioNoneThe model’s raw response in audio.
citationsCitationsNoneAny citations used in the response.
created_atint-Unix timestamp of the response creation.
extra_dataRunResponseExtraDataNoneExtra data containing optional fields like references, add_messages, history, reasoning_steps, and reasoning_messages.

RunResponseEvent Types and Attributes

Base RunResponseEvent Attributes

All events inherit from BaseAgentRunResponseEvent which provides these common attributes:

AttributeTypeDefaultDescription
created_atintCurrent timestampUnix timestamp of the event creation
eventstrEvent type valueThe type of event
agent_idstr""ID of the agent generating the event
run_idOptional[str]NoneID of the current run
session_idOptional[str]NoneID of the current session
contentOptional[Any]NoneFor backwards compatibility

RunResponseStartedEvent

AttributeTypeDefaultDescription
eventstr"RunStarted"Event type
modelstr""The model being used
model_providerstr""The provider of the model

RunResponseContentEvent

AttributeTypeDefaultDescription
eventstr"RunResponseContent"Event type
contentOptional[Any]NoneThe content of the response
content_typestr"str"Type of the content
thinkingOptional[str]NoneInternal thoughts of the model
citationsOptional[Citations]NoneCitations used in the response
response_audioOptional[AudioResponse]NoneModel’s audio response
imageOptional[ImageArtifact]NoneImage attached to the response
extra_dataOptional[RunResponseExtraData]NoneAdditional response data

RunResponseCompletedEvent

AttributeTypeDefaultDescription
eventstr"RunCompleted"Event type
contentOptional[Any]NoneFinal content of the response
content_typestr"str"Type of the content
reasoning_contentOptional[str]NoneReasoning content produced
thinkingOptional[str]NoneInternal thoughts of the model
citationsOptional[Citations]NoneCitations used in the response
imagesOptional[List[ImageArtifact]]NoneImages attached to the response
videosOptional[List[VideoArtifact]]NoneVideos attached to the response
audioOptional[List[AudioArtifact]]NoneAudio snippets attached to the response
response_audioOptional[AudioResponse]NoneModel’s audio response
extra_dataOptional[RunResponseExtraData]NoneAdditional response data

RunResponsePausedEvent

AttributeTypeDefaultDescription
eventstr"RunPaused"Event type
toolsOptional[List[ToolExecution]]NoneTools that require confirmation

RunResponseContinuedEvent

AttributeTypeDefaultDescription
eventstr"RunContinued"Event type

RunResponseErrorEvent

AttributeTypeDefaultDescription
eventstr"RunError"Event type
contentOptional[str]NoneError message

RunResponseCancelledEvent

AttributeTypeDefaultDescription
eventstr"RunCancelled"Event type
reasonOptional[str]NoneReason for cancellation

ReasoningStartedEvent

AttributeTypeDefaultDescription
eventstr"ReasoningStarted"Event type

ReasoningStepEvent

AttributeTypeDefaultDescription
eventstr"ReasoningStep"Event type
contentOptional[Any]NoneContent of the reasoning step
content_typestr"str"Type of the content
reasoning_contentstr""Detailed reasoning content

ReasoningCompletedEvent

AttributeTypeDefaultDescription
eventstr"ReasoningCompleted"Event type
contentOptional[Any]NoneContent of the reasoning step
content_typestr"str"Type of the content

ToolCallStartedEvent

AttributeTypeDefaultDescription
eventstr"ToolCallStarted"Event type
toolOptional[ToolExecution]NoneThe tool being called

ToolCallCompletedEvent

AttributeTypeDefaultDescription
eventstr"ToolCallCompleted"Event type
toolOptional[ToolExecution]NoneThe tool that was called
contentOptional[Any]NoneResult of the tool call
imagesOptional[List[ImageArtifact]]NoneImages produced by the tool
videosOptional[List[VideoArtifact]]NoneVideos produced by the tool
audioOptional[List[AudioArtifact]]NoneAudio produced by the tool

MemoryUpdateStartedEvent

AttributeTypeDefaultDescription
eventstr"MemoryUpdateStarted"Event type

MemoryUpdateCompletedEvent

AttributeTypeDefaultDescription
eventstr"MemoryUpdateCompleted"Event type