Learn R Programming

aisdk (version 1.1.0)

map_anthropic_chunk: Map native Anthropic SSE event to aggregator calls

Description

Translates a native Anthropic Messages API SSE event into the appropriate SSEAggregator method calls.

Usage

map_anthropic_chunk(event_type, event_data, agg)

Value

Logical TRUE if the stream should break (message_stop received).

Arguments

event_type

SSE event type string (e.g. "content_block_delta").

event_data

Parsed JSON data from SSE event.

agg

An SSEAggregator instance.