content_index: number

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

item_id: string

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

logprobs: Array<Logprob>

The log probabilities of the tokens in the delta.

token: string

A possible text token.

logprob: number

The log probability of this token.

top_logprobs?: Array<TopLogprob>

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

token?: string

A possible text token.

logprob?: number

The log probability of this token.

output_index: number

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

sequence_number: number

The sequence number for this event.

text: string

The text content that is finalized.

type: "response.output_text.done"

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

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.