Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / handleMessageDelta

Function: handleMessageDelta()

handleMessageDelta(event, state): null | StreamChunk

Defined in: providers/anthropic-stream.ts:94

Parameters

event

type

"message_delta"

delta

{ stop_reason?: string; stop_sequence?: null | string; }

delta.stop_reason?

string

delta.stop_sequence?

null | string

usage?

{ output_tokens: number; }

usage.output_tokens

number

state

StreamState

Returns

null | StreamChunk

Released under the MIT License.