diff --git a/api/libs/agents/src/agent.rs b/api/libs/agents/src/agent.rs index 8bd44e8b7..5b0fd7792 100644 --- a/api/libs/agents/src/agent.rs +++ b/api/libs/agents/src/agent.rs @@ -605,6 +605,8 @@ impl Agent { session_id: thread.id.to_string(), trace_id: Uuid::new_v4().to_string(), }), + // temperature: Some(0.0), + // max_completion_tokens: Some(15000), // reasoning_effort: Some("low".to_string()), ..Default::default() }; diff --git a/api/libs/agents/src/tools/categories/file_tools/create_dashboards.rs b/api/libs/agents/src/tools/categories/file_tools/create_dashboards.rs index 38b5d35cb..76aeeda49 100644 --- a/api/libs/agents/src/tools/categories/file_tools/create_dashboards.rs +++ b/api/libs/agents/src/tools/categories/file_tools/create_dashboards.rs @@ -328,6 +328,7 @@ impl ToolExecutor for CreateDashboardFilesTool { "items": { "type": "object", "required": ["name", "yml_content"], + "strict": true, "properties": { "name": { "type": "string", diff --git a/api/libs/agents/src/tools/categories/file_tools/create_metrics.rs b/api/libs/agents/src/tools/categories/file_tools/create_metrics.rs index 7d2584d65..dc236f5b4 100644 --- a/api/libs/agents/src/tools/categories/file_tools/create_metrics.rs +++ b/api/libs/agents/src/tools/categories/file_tools/create_metrics.rs @@ -264,6 +264,7 @@ impl ToolExecutor for CreateMetricFilesTool { "items": { "type": "object", "required": ["name", "yml_content"], + "strict": true, "properties": { "name": { "type": "string", diff --git a/api/libs/agents/src/tools/categories/file_tools/modify_dashboards.rs b/api/libs/agents/src/tools/categories/file_tools/modify_dashboards.rs index ec4943fa9..da3dce7c4 100644 --- a/api/libs/agents/src/tools/categories/file_tools/modify_dashboards.rs +++ b/api/libs/agents/src/tools/categories/file_tools/modify_dashboards.rs @@ -16,8 +16,8 @@ use tracing::{debug, error, info}; use super::{ common::{ - process_dashboard_file_modification, ModificationResult, ModifyFilesOutput, - ModifyFilesParams, FailedFileModification, + process_dashboard_file_modification, FailedFileModification, ModificationResult, + ModifyFilesOutput, ModifyFilesParams, }, file_types::file::FileWithId, FileModificationTool, @@ -230,16 +230,13 @@ impl ToolExecutor for ModifyDashboardFilesTool { "description": get_modify_dashboards_yml_description().await, "items": { "type": "object", - "required": ["id", "file_name", "modifications"], + "required": ["id", "modifications"], + "strict": true, "properties": { "id": { "type": "string", "description": get_dashboard_modification_id_description().await }, - "file_name": { - "type": "string", - "description": get_modify_dashboards_file_name_description().await - }, "modifications": { "type": "array", "description": get_modify_dashboards_modifications_description().await, @@ -490,7 +487,8 @@ mod tests { #[test] fn test_apply_modifications_append() { - let original_content = "name: test_dashboard\ntype: dashboard\ndescription: A test dashboard"; + let original_content = + "name: test_dashboard\ntype: dashboard\ndescription: A test dashboard"; // Test appending content with empty content_to_replace let mods = vec![Modification { diff --git a/api/libs/agents/src/tools/categories/file_tools/modify_metrics.rs b/api/libs/agents/src/tools/categories/file_tools/modify_metrics.rs index 5b3ca97f7..72a14104b 100644 --- a/api/libs/agents/src/tools/categories/file_tools/modify_metrics.rs +++ b/api/libs/agents/src/tools/categories/file_tools/modify_metrics.rs @@ -328,6 +328,7 @@ impl ToolExecutor for ModifyMetricFilesTool { "content_to_replace", "new_content" ], + "strict": true, "properties": { "content_to_replace": { "type": "string",