ReqLLM.Error.API.Timeout exception (ReqLLM v1.19.0)

View Source

Structured timeout for ReqLLM model calls and provider transports.

Summary

Types

The phase whose configured timeout expired.

t()

Structured timeout with its phase and configured duration.

Types

kind()

@type kind() :: :connect | :receive | :total | :stream_idle

The phase whose configured timeout expired.

t()

@type t() :: %ReqLLM.Error.API.Timeout{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  kind: kind(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  timeout: pos_integer(),
  vars: term()
}

Structured timeout with its phase and configured duration.

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %ReqLLM.Error.API.Timeout{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  kind: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  timeout: term(),
  vars: term()
}

Create an Elixir.ReqLLM.Error.API.Timeout without raising it.

Keys

  • :kind
  • :timeout