chore: update Rust toolchain to 1.92 (#797)
This commit is contained in:
parent
34d0bc6cd2
commit
8a8c036ccb
1 changed files with 4 additions and 9 deletions
|
|
@ -1545,12 +1545,13 @@ pub enum Role {
|
|||
}
|
||||
|
||||
/// Tool selection mode (SEP-1577).
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
||||
#[expect(clippy::exhaustive_enums, reason = "intentionally exhaustive")]
|
||||
pub enum ToolChoiceMode {
|
||||
/// Model decides whether to use tools
|
||||
#[default]
|
||||
Auto,
|
||||
/// Model must use at least one tool
|
||||
Required,
|
||||
|
|
@ -1558,12 +1559,6 @@ pub enum ToolChoiceMode {
|
|||
None,
|
||||
}
|
||||
|
||||
impl Default for ToolChoiceMode {
|
||||
fn default() -> Self {
|
||||
Self::Auto
|
||||
}
|
||||
}
|
||||
|
||||
/// Tool choice configuration (SEP-1577).
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Default)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue