content_index: int

The index of the content part that the text content is finalized.

item_id: str

The ID of the output item that the text content is finalized.

logprobs: List[Logprob]

The log probabilities of the tokens in the delta.

token: str

A possible text token.

logprob: float

The log probability of this token.

top_logprobs: Optional[List[LogprobTopLogprob]]

The log probabilities of up to 20 of the most likely tokens.

token: Optional[str]

A possible text token.

logprob: Optional[float]

The log probability of this token.

output_index: int

The index of the output item that the text content is finalized.

sequence_number: int

The sequence number for this event.

text: str

The text content that is finalized.

type: Literal["response.output_text.done"]

The type of the event. Always response.output_text.done.

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.