pub struct LLMExtension {
pub model_id: Option<String>,
pub provider: Option<String>,
pub capabilities: Vec<String>,
}Expand description
Model identity and capabilities.
Immutable — set by the host.
Fields§
§model_id: Option<String>Model identifier (e.g., “gpt-4o”, “claude-sonnet-4-20250514”).
provider: Option<String>Provider name (e.g., “openai”, “anthropic”).
capabilities: Vec<String>Model capabilities (e.g., “tool_use”, “vision”, “streaming”).
Trait Implementations§
Source§impl Clone for LLMExtension
impl Clone for LLMExtension
Source§fn clone(&self) -> LLMExtension
fn clone(&self) -> LLMExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LLMExtension
impl Debug for LLMExtension
Source§impl Default for LLMExtension
impl Default for LLMExtension
Source§fn default() -> LLMExtension
fn default() -> LLMExtension
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LLMExtension
impl<'de> Deserialize<'de> for LLMExtension
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 LLMExtension
impl RefUnwindSafe for LLMExtension
impl Send for LLMExtension
impl Sync for LLMExtension
impl Unpin for LLMExtension
impl UnsafeUnpin for LLMExtension
impl UnwindSafe for LLMExtension
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