Provider-neutral inference request.
Summary
Types
@type input() :: String.t() | [Inference.Message.t() | map() | keyword()] | t()
@type t() :: %Inference.Request{ id: String.t() | nil, max_tokens: pos_integer() | nil, messages: [Inference.Message.t()], metadata: map(), model: String.t() | nil, options: keyword(), response_format: term(), session: term(), stream?: boolean(), temperature: number() | nil, top_p: number() | nil, trace_context: map() | nil }
Functions
@spec from_messages( list(), keyword() ) :: {:ok, t()} | {:error, Inference.Error.t()}
@spec from_prompt( String.t(), keyword() ) :: {:ok, t()} | {:error, Inference.Error.t()}
@spec new( input(), keyword() ) :: {:ok, t()} | {:error, Inference.Error.t()}