Skip to content
1 min read · 187 words

Interface: OpenAIResponsesRefusalDeltaEvent ​

Defined in: src/batteries/llm/openai_responses/types.ts:362

SSE event emitted when a refusal fragment streams in for an output message's content.

Extends ​

  • OpenAIResponsesStreamEventBase

Properties ​

PropertyTypeDescriptionOverridesInherited fromDefined in
content_indexnumberThe index of the content part within the item's content array.--src/batteries/llm/openai_responses/types.ts:370
deltastringThe incremental refusal-text fragment to append.--src/batteries/llm/openai_responses/types.ts:372
item_idstringThe id of the output-message item this delta belongs to.--src/batteries/llm/openai_responses/types.ts:366
output_indexnumberThe index of the output-message item within response.output.--src/batteries/llm/openai_responses/types.ts:368
sequence_number?numberMonotonically increasing sequence number for this event within the stream.-OpenAIResponsesStreamEventBase.sequence_numbersrc/batteries/llm/openai_responses/types.ts:310
type"response.refusal.delta"Event-type discriminator; always 'response.refusal.delta'.OpenAIResponsesStreamEventBase.type-src/batteries/llm/openai_responses/types.ts:364