code: string | null

The error code.

message: string

The error message.

param: string | null

The error parameter.

sequence_number: number

The sequence number of this event.

type: "error"

The type of the event. Always error.

agent?: Agent | null

The agent that owns this multi-agent streaming event.

agent_name: string

The canonical name of the agent that produced this item.