pub struct LLMCapabilities {
pub streaming: bool,
pub vision: bool,
pub function_calling: bool,
pub json_mode: bool,
pub max_context_tokens: Option<usize>,
pub max_output_tokens: Option<usize>,
pub content_types: Vec<String>,
}
Expand description
Capabilities of an LLM provider
Fields§
§streaming: bool
Supports streaming responses
vision: bool
Supports image inputs
function_calling: bool
Supports function/tool calling
json_mode: bool
Supports JSON mode
max_context_tokens: Option<usize>
Maximum context window size
max_output_tokens: Option<usize>
Maximum output tokens
content_types: Vec<String>
Supported content types
Trait Implementations§
Source§impl Clone for LLMCapabilities
impl Clone for LLMCapabilities
Source§fn clone(&self) -> LLMCapabilities
fn clone(&self) -> LLMCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LLMCapabilities
impl Debug for LLMCapabilities
Source§impl Default for LLMCapabilities
impl Default for LLMCapabilities
Source§impl<'de> Deserialize<'de> for LLMCapabilities
impl<'de> Deserialize<'de> for LLMCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LLMCapabilities
impl RefUnwindSafe for LLMCapabilities
impl Send for LLMCapabilities
impl Sync for LLMCapabilities
impl Unpin for LLMCapabilities
impl UnwindSafe for LLMCapabilities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more