Expand description
Provider-neutral conversation types shared by routing, clients, and translation.
Structs§
- AggLlm
Response - Normalized, fully-buffered response — the aggregate of a completed generation.
This is the terminal form of a streamed
LlmResponse. - Input
Cache Usage - Optional cache-token detail kept out of the common, cache-free usage allocation.
- Instruction
Block - Instruction content separated from normal conversation messages.
- LlmRequest
- Normalized request representation shared by Switchyard components.
- Message
- One normalized conversation message.
- Output
Params - Output budget and structured-output options.
- Preservation
Metadata - Exact source payloads retained for lossless same-format round trips.
- Provider
Extensions - Provider-specific fields that do not have first-class conversation fields.
- Reasoning
Params - Provider reasoning controls preserved by translation.
- Response
Output - One assistant output item in a normalized response.
- Sampling
Params - Provider sampling parameters with common cross-provider names.
- Tool
Call - Normalized assistant tool call.
- Tool
Definition - Normalized tool definition.
- Tool
Result - Normalized tool result message content.
- Usage
- Normalized token usage counts.
Enums§
- Content
Block - Normalized content block variants carried by messages and tool results.
- File
Source - File payload forms supported by the conversation model.
- Image
Source - Image payload forms supported by the conversation model.
- Media
Source - Audio and video payload forms supported by the conversation model.
- Role
- Actor role normalized across provider APIs.
- Stop
Reason - Normalized reason a model stopped producing output.
- Tool
Choice - Normalized tool choice policy.