Anthropic-specific test helpers.
Provides SSE event builders that construct valid Anthropic streaming event sequences for use in tests.
Summary
Functions
Builds a complete Anthropic SSE event sequence for a text response.
Builds a complete Anthropic SSE event sequence for a tool call response.
Functions
Builds a complete Anthropic SSE event sequence for a text response.
Returns a list of 6 event maps representing a streamed text reply.
Builds a complete Anthropic SSE event sequence for a tool call response.
Returns a list of 6 event maps representing a streamed tool call
with the given name and input.