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
@@ -509,7 +509,7 @@ pub struct DynamicToolSpec {
pub name: String,
pub description: String,
pub input_schema: JsonValue,
#[serde(default = "default_dynamic_tool_inject_into_context")]
#[serde(default = "default_enabled")]
pub inject_into_context: bool,
}
@@ -548,10 +548,6 @@ pub struct ToolProviderUnregisterParams {
#[ts(export_to = "v2/")]
pub struct ToolProviderUnregisterResponse {}
fn default_dynamic_tool_inject_into_context() -> bool {
true
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS, ExperimentalApi)]
#[serde(rename_all = "snake_case")]
#[ts(export_to = "v2/")]