LLMError
represents an error from an LLM operation.
Transport: the HTTP request failed, carrying http-client'sClientError, which says at which stage and whether another attempt could helpConfig: the request never left, because the provider or the operation is not one this library can performDecode: the provider answered, but the body is not valid for its schemaApi: provider returned an error response (HTTP status, error type, message)
delete
instantiate
(Fn [LLMError] ())
deletes a LLMError. This should usually not be called manually.
delivered?
defn
(Fn [(Ref LLMError a)] Bool)
(delivered? e)
whether the provider received the request before the failure.
true means a retry repeats work the provider has already done, which for a
generation endpoint is a second billed call. A caller doing something that is
not idempotent should check this before retrying, even when retryable? says
another attempt could succeed.