Enum Tool Choice

View as Markdown

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.

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

impl<'de> Deserialize<'de> for ToolChoice

impl<'de> Deserialize<'de> for ToolChoice

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ToolChoice

impl StructuralPartialEq for ToolChoice