GitHub

API reference for error.

The Anthropic details an AiError reason carries under its metadata["anthropic"] (Effect's AnthropicError): the error type and request id of the provider's response, and for a rate limit the anthropic-ratelimit-* headers. A field is None when Anthropic did not send it.

Classes