mistralrs_core/tools/
request.rs

1use mistralrs_mcp::Tool;
2
3#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum ToolChoice {
6    #[serde(rename = "none")]
7    /// Disallow selection of tools.
8    None,
9    #[serde(rename = "auto")]
10    /// Allow automatic selection of any given tool, or none.
11    Auto,
12    #[serde(untagged)]
13    /// Force selection of a given tool.
14    Tool(Tool),
15}