LlmCapabilities
Rust struct goodmem::models::LlmCapabilities: declaration, fields or variants, and implementations.
Struct LlmCapabilities
goodmem::models::LlmCapabilities
Capabilities and features supported by an LLM service
pub struct LlmCapabilities {
pub supports_chat: Option<bool>,
pub supports_completion: Option<bool>,
pub supports_function_calling: Option<bool>,
pub supports_system_messages: Option<bool>,
pub supports_streaming: Option<bool>,
pub supports_sampling_parameters: Option<bool>,
}Fields
supports_chat
pub supports_chat: Option<bool>
Supports conversational/chat completion format with message roles
Wire name: supportsChat.
supports_completion
pub supports_completion: Option<bool>
Supports raw text completion with prompt continuation
Wire name: supportsCompletion.
supports_function_calling
pub supports_function_calling: Option<bool>
Supports function/tool calling with structured responses
Wire name: supportsFunctionCalling.
supports_system_messages
pub supports_system_messages: Option<bool>
Supports system prompts to define model behavior and context
Wire name: supportsSystemMessages.
supports_streaming
pub supports_streaming: Option<bool>
Supports real-time token streaming during generation
Wire name: supportsStreaming.
supports_sampling_parameters
pub supports_sampling_parameters: Option<bool>
Supports sampling parameters like temperature, top_p, and top_k for generation control
Wire name: supportsSamplingParameters.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for LlmCapabilitiesimpl std::fmt::Debug for LlmCapabilities