Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub enum ToolChoice {
Auto,
None,
Required,
Specific(ToolChoiceFunction),
}
Tool choice control: how the model should use available tools.
AutoAuto
Let the model decide whether to call a tool.
NoneNone
Do not call any tools.
RequiredRequired
The model must call at least one tool.
Specific(ToolChoiceFunction)Specific(ToolChoiceFunction)
Force a specific function by name.
impl Clone for ToolChoiceimpl Clone for ToolChoice
clonefn clone(&self) -> ToolChoice
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for ToolChoiceimpl Debug for ToolChoice
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for ToolChoiceimpl<'de> Deserialize<'de> for ToolChoice
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for ToolChoiceimpl PartialEq for ToolChoice
eqfn eq(&self, other: &ToolChoice) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for ToolChoiceimpl Serialize for ToolChoice
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for ToolChoiceimpl StructuralPartialEq for ToolChoice