View source: R/sse_aggregator.R
| map_anthropic_chunk | R Documentation |
Translates a native Anthropic Messages API SSE event into the appropriate SSEAggregator method calls.
map_anthropic_chunk(event_type, event_data, agg)
event_type |
SSE event type string (e.g. "content_block_delta"). |
event_data |
Parsed JSON data from SSE event. |
agg |
An SSEAggregator instance. |
Logical TRUE if the stream should break (message_stop received).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.