Skip to main content

Module llm

Module llm 

Source
Expand description

Provider-neutral conversation types shared by routing, clients, and translation.

Structs§

InstructionBlock
Instruction content separated from normal conversation messages.
LlmRequest
Normalized request representation shared by Switchyard components.
LlmResponse
Normalized response representation shared by Switchyard components.
Message
One normalized conversation message.
OutputParams
Output budget and structured-output options.
PreservationMetadata
Exact source payloads retained for lossless round trips.
ProviderExtensions
Provider-specific fields that do not have first-class conversation fields.
ReasoningParams
Provider reasoning controls preserved by translation.
ResponseOutput
One assistant output item in a normalized response.
SamplingParams
Provider sampling parameters with common cross-provider names.
ToolCall
Normalized assistant tool call.
ToolDefinition
Normalized tool definition.
ToolResult
Normalized tool result message content.
Usage
Normalized token usage counts.

Enums§

ContentBlock
Normalized content block variants carried by messages and tool results.
FileSource
File payload forms supported by the conversation model.
ImageSource
Image payload forms supported by the conversation model.
LlmStreamEvent
Provider-neutral event used between stream decoders and encoders.
MediaSource
Audio and video payload forms supported by the conversation model.
Role
Actor role normalized across provider APIs.
StopReason
Normalized reason a model stopped producing output.
ToolChoice
Normalized tool choice policy.