Skip to main content

Module request

Module request 

Source
Expand description

Provider request parameters.

Structs§

CompletionRequest
Input for a single generation request.
Message
A single message in the conversation history.
SamplingParams
Sampling parameters.

Enums§

ImageData
Placeholder shape for multimodal image payloads. The exact shape is not yet finalized.
MessageContent
A piece of content inside a message body.
ProviderActivityKind
The kind of hosted activity. Only appears inside MessageContent::ProviderActivity.
ReasoningEffort
Runtime-level enum for the OpenAI-compatible reasoning_effort protocol.
Role
ThinkingConfig
Thinking chain configuration. Providers that do not support the concept of a thinking chain should ignore the budget field of Enabled, or report super::FeatureSupport::Unsupported in the capability matrix.
ToolChoice
Tool selection strategy.
ToolResultBody
Tool result payload. The codec converts it for the wire during serialization: some wires only support strings, so they stringify ToolResultBody::Json.
ToolResultContent
A single block inside ToolResultBody::Content. Text follows the same semantics as ToolResultBody::Text; images reuse the (mime, data) shape from MessageContent::Image.