pub struct ModelConstraints {
pub vision: bool,
pub tool_calling: bool,
pub structured_output: bool,
pub reasoning: Option<String>,
}Expand description
Capabilities required by an invocation, without naming a provider or model.
Fields§
§vision: boolThe model must accept image input.
tool_calling: boolThe model must support tool calls.
structured_output: boolThe model must support schema-constrained output.
reasoning: Option<String>Optional logical reasoning intensity understood by the LLM adapter.
Trait Implementations§
Source§impl Clone for ModelConstraints
impl Clone for ModelConstraints
Source§fn clone(&self) -> ModelConstraints
fn clone(&self) -> ModelConstraints
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 ModelConstraints
impl Debug for ModelConstraints
Source§impl Default for ModelConstraints
impl Default for ModelConstraints
Source§fn default() -> ModelConstraints
fn default() -> ModelConstraints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelConstraints
impl<'de> Deserialize<'de> for ModelConstraints
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelConstraints, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelConstraints, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelConstraints
Source§impl PartialEq for ModelConstraints
impl PartialEq for ModelConstraints
Source§impl Serialize for ModelConstraints
impl Serialize for ModelConstraints
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ModelConstraints
Auto Trait Implementations§
impl Freeze for ModelConstraints
impl RefUnwindSafe for ModelConstraints
impl Send for ModelConstraints
impl Sync for ModelConstraints
impl Unpin for ModelConstraints
impl UnsafeUnpin for ModelConstraints
impl UnwindSafe for ModelConstraints
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