LLMError

represents an error from an LLM operation.

  • Transport: connection, DNS, or network error
  • Api: provider returned an error response (HTTP status, error type, message)

Api

instantiate

(Fn [Int, String, String] LLMError)

creates a Api.

Transport

instantiate

(Fn [String] LLMError)

creates a Transport.

copy

instantiate

(Fn [(Ref LLMError a)] LLMError)

copies a LLMError.

delete

instantiate

(Fn [LLMError] ())

deletes a LLMError. This should usually not be called manually.

get-tag

instantiate

(Fn [(Ref LLMError a)] Int)

Gets the tag from a LLMError.

prn

instantiate

(Fn [(Ref LLMError a)] String)

converts a LLMError to a string.

str

defn

(Fn [(Ref LLMError a)] String)

                        (str e)
                    

formats an LLMError as a human-readable string.