mirror of https://github.com/buster-so/buster.git
Merge branch 'evals' of https://github.com/buster-so/buster into evals
This commit is contained in:
commit
0b6707bed3
|
@ -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()
|
||||
};
|
||||
|
|
|
@ -328,6 +328,7 @@ impl ToolExecutor for CreateDashboardFilesTool {
|
|||
"items": {
|
||||
"type": "object",
|
||||
"required": ["name", "yml_content"],
|
||||
"strict": true,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
|
|
|
@ -264,6 +264,7 @@ impl ToolExecutor for CreateMetricFilesTool {
|
|||
"items": {
|
||||
"type": "object",
|
||||
"required": ["name", "yml_content"],
|
||||
"strict": true,
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -328,6 +328,7 @@ impl ToolExecutor for ModifyMetricFilesTool {
|
|||
"content_to_replace",
|
||||
"new_content"
|
||||
],
|
||||
"strict": true,
|
||||
"properties": {
|
||||
"content_to_replace": {
|
||||
"type": "string",
|
||||
|
|
Loading…
Reference in New Issue