Package: @effect/ai-anthropic
Module: AnthropicClient
Represents an event received from the Anthropic Messages API during a streaming request.
Details
Events include:
message_start: Initial event containing message metadatamessage_delta: Incremental updates to the message (e.g., stop reason)message_stop: Final event indicating the message is completecontent_block_start: Start of a content blockcontent_block_delta: Incremental content updates (text, tool use, etc.)content_block_stop: End of a content blockerror: Error events with type and messageSignature
type MessageStreamEvent = | typeof Generated.BetaMessageStartEvent.Type
| typeof Generated.BetaMessageDeltaEvent.Type
| typeof Generated.BetaMessageStopEvent.Type
| typeof Generated.BetaContentBlockStartEvent.Type
| typeof Generated.BetaContentBlockDeltaEvent.Type
| typeof Generated.BetaContentBlockStopEvent.Type
| typeof Generated.BetaErrorResponse.Type
Since v4.0.0