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