code: Optional[str]

The error code.

message: str

The error message.

param: Optional[str]

The error parameter.

sequence_number: int

The sequence number of this event.

type: Literal["error"]

The type of the event. Always error.

agent: Optional[Agent]

The agent that owns this multi-agent streaming event.

agent_name: str

The canonical name of the agent that produced this item.