use the consistent defautl_enabled

This commit is contained in:
Channing Conger
2026-03-11 13:09:17 -07:00
parent 25d66bf52d
commit d8e79b65cb
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ pub struct DynamicToolSpec {
pub name: String,
pub description: String,
pub input_schema: JsonValue,
#[serde(default = "default_inject_into_context")]
#[serde(default = "default_enabled")]
pub inject_into_context: bool,
#[serde(default)]
pub provider_owned: bool,
@@ -45,6 +45,6 @@ pub enum DynamicToolCallOutputContentItem {
InputImage { image_url: String },
}
fn default_inject_into_context() -> bool {
fn default_enabled() -> bool {
true
}