factor_agent.llm.anthropic.AnthropicBackend.complete#

AnthropicBackend.complete(request)[source]#

Send request’s prompt as one user message.

Raises:
ProviderQuotaExhausted

If Anthropic refuses the call for billing: an error of type billing_error (HTTP 402), or the request error saying the credit balance is too low.

anthropic.APIError

If the call fails otherwise, after the SDK’s retries.

ProviderReplyMalformed

If Anthropic answers something that is not a message: no body (null), no content or no token usage.