pub struct ModelProfile {Show 22 fields
pub protocol: ProtocolFamily,
pub supports_tools: bool,
pub supports_tool_return_schema: bool,
pub supports_json_schema_output: bool,
pub supports_json_object_output: bool,
pub supports_image_output: bool,
pub supports_image_input: bool,
pub supports_video_input: bool,
pub supports_audio_input: bool,
pub supports_document_input: bool,
pub supports_inline_system_prompts: bool,
pub supports_thinking: bool,
pub drop_sampling_parameters_when_reasoning: bool,
pub thinking_always_enabled: bool,
pub thinking_tags: (String, String),
pub ignore_streamed_leading_whitespace: bool,
pub default_structured_output_mode: StructuredOutputMode,
pub prompted_output_template: String,
pub native_output_requires_schema_in_instructions: bool,
pub supported_native_tools: BTreeSet<NativeToolKind>,
pub json_schema_transformer: Option<JsonSchemaTransformer>,
pub message_normalization: MessageNormalization,
}Expand description
Capability metadata and request-shaping policy.
Fields§
§protocol: ProtocolFamilyProtocol family used by the adapter.
supports_tools: boolFunction/tool calling support.
supports_tool_return_schema: boolNative support for tool return schemas.
supports_json_schema_output: boolNative JSON schema output support.
supports_json_object_output: boolJSON object mode support.
supports_image_output: boolImage return support.
supports_image_input: boolImage URL input support.
supports_video_input: boolVideo URL input support.
supports_audio_input: boolAudio URL input support.
supports_document_input: boolDocument URL input support.
supports_inline_system_prompts: boolFlexible system prompt placement support.
supports_thinking: boolConfigurable thinking support.
drop_sampling_parameters_when_reasoning: boolDrop sampling settings such as temperature/top-p/top-k/penalties/logit-bias when reasoning is enabled.
thinking_always_enabled: boolReasoning is always enabled.
Tags used by text-stream adapters to split thinking parts from text.
ignore_streamed_leading_whitespace: boolIgnore leading whitespace-only stream content before semantic parts.
default_structured_output_mode: StructuredOutputModeDefault structured output mode.
prompted_output_template: StringPrompt template used for prompted structured output.
native_output_requires_schema_in_instructions: boolWhether native structured output still needs schema instructions in the prompt.
supported_native_tools: BTreeSet<NativeToolKind>Provider-neutral native tool families supported by this profile.
json_schema_transformer: Option<JsonSchemaTransformer>JSON schema transformer applied to tools and structured output schemas.
message_normalization: MessageNormalizationMessage normalization policy.
Implementations§
Source§impl ModelProfile
impl ModelProfile
Sourcepub fn for_protocol(protocol: ProtocolFamily) -> Self
pub fn for_protocol(protocol: ProtocolFamily) -> Self
Create a default profile for a protocol family.
Trait Implementations§
Source§impl Clone for ModelProfile
impl Clone for ModelProfile
Source§fn clone(&self) -> ModelProfile
fn clone(&self) -> ModelProfile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more