Sycophant.Request (sycophant v0.4.2)

Copy Markdown

Internal struct representing a normalized LLM request.

Built by Sycophant.Pipeline after model resolution and parameter validation. Passed to wire protocol adapters for encoding into provider-specific JSON payloads. This is not part of the public API.

Summary

Types

t()

@type t() :: %Sycophant.Request{
  credentials: map(),
  messages: [Sycophant.Message.t()],
  model: String.t() | nil,
  params: map(),
  resolved_model: term() | nil,
  response_schema: map() | nil,
  stream: (term() -> term()) | {term(), (term(), term() -> term())} | nil,
  tools: [Sycophant.Tool.t()],
  wire_protocol: atom() | nil
}