Interface: PipelineStageDelta
@providerprotocol/ai / middleware/pipeline / PipelineStageDelta
Interface: PipelineStageDelta
Section titled “Interface: PipelineStageDelta”Defined in: src/middleware/pipeline/index.ts:17
Pipeline stage event delta with stage-specific data.
Extends
Section titled “Extends”Properties
Section titled “Properties”argumentsJson?
Section titled “argumentsJson?”
optionalargumentsJson:string
Defined in: src/types/stream.ts:107
Incremental JSON arguments string (tool_call_delta)
Inherited from
Section titled “Inherited from”attempt?
Section titled “attempt?”
optionalattempt:number
Defined in: src/types/stream.ts:119
Current retry attempt number (stream_retry, 1-indexed)
Inherited from
Section titled “Inherited from”
optionaldata:Uint8Array<ArrayBufferLike>
Defined in: src/types/stream.ts:98
Incremental binary data (image_delta, audio_delta, video_delta)
Inherited from
Section titled “Inherited from”error?
Section titled “error?”
optionalerror:object
Defined in: src/types/stream.ts:125
Error that triggered the retry (stream_retry) - serialized for JSON transport
optionalcode:string
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”isError?
Section titled “isError?”
optionalisError:boolean
Defined in: src/types/stream.ts:113
Whether tool execution resulted in an error (tool_execution_end)
Inherited from
Section titled “Inherited from”maxAttempts?
Section titled “maxAttempts?”
optionalmaxAttempts:number
Defined in: src/types/stream.ts:122
Maximum number of retry attempts configured (stream_retry)
Inherited from
Section titled “Inherited from”payload
Section titled “payload”payload:
unknown
Defined in: src/middleware/pipeline/index.ts:21
Stage output payload
result?
Section titled “result?”
optionalresult:unknown
Defined in: src/types/stream.ts:110
Tool execution result (tool_execution_end)
Inherited from
Section titled “Inherited from”stage:
string
Defined in: src/middleware/pipeline/index.ts:19
Stage identifier
optionaltext:string
Defined in: src/types/stream.ts:95
Incremental text content (text_delta, reasoning_delta, object_delta)
Inherited from
Section titled “Inherited from”timestamp?
Section titled “timestamp?”
optionaltimestamp:number
Defined in: src/types/stream.ts:116
Timestamp in milliseconds (tool_execution_start/end, stream_retry)
Inherited from
Section titled “Inherited from”toolCallId?
Section titled “toolCallId?”
optionaltoolCallId:string
Defined in: src/types/stream.ts:101
Tool call identifier (tool_call_delta, tool_execution_start/end)
Inherited from
Section titled “Inherited from”toolName?
Section titled “toolName?”
optionaltoolName:string
Defined in: src/types/stream.ts:104
Tool name (tool_call_delta, tool_execution_start/end)