Merge branch 'evals' of https://github.com/buster-so/buster into evals

This commit is contained in:
Nate Kelley 2025-04-09 09:17:10 -06:00
commit 5d08f3d20e
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 1 additions and 6 deletions

View File

@ -257,7 +257,6 @@ impl ToolExecutor for CreateDashboardFilesTool {
id: dashboard_records[i].id,
name: dashboard_records[i].name.clone(),
file_type: "dashboard".to_string(),
yml_content: serde_yaml::to_string(&yml).unwrap_or_default(),
result_message: None,
results: None,
created_at: dashboard_records[i].created_at,

View File

@ -191,7 +191,6 @@ impl ToolExecutor for CreateMetricFilesTool {
id: metric_records[i].id,
name: metric_records[i].name.clone(),
file_type: "metric".to_string(),
yml_content: serde_yaml::to_string(&yml).unwrap_or_default(),
result_message: Some(results_vec[i].0.clone()),
results: Some(results_vec[i].1.clone()),
created_at: metric_records[i].created_at,

View File

@ -18,7 +18,6 @@ pub struct FileWithId {
pub id: Uuid,
pub name: String,
pub file_type: String,
pub yml_content: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub result_message: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]

View File

@ -11,7 +11,6 @@ use crate::{agent::Agent, tools::ToolExecutor};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreatePlanOutput {
pub message: String,
pub plan_markdown: String,
}
#[derive(Debug, Deserialize)]
@ -38,14 +37,13 @@ impl ToolExecutor for CreatePlan {
"create_plan".to_string()
}
async fn execute(&self, params: Self::Params, _tool_call_id: String) -> Result<Self::Output> {
async fn execute(&self, _params: Self::Params, _tool_call_id: String) -> Result<Self::Output> {
self.agent
.set_state_value(String::from("plan_available"), Value::Bool(true))
.await;
Ok(CreatePlanOutput {
message: "Plan created successfully".to_string(),
plan_markdown: params.plan_markdown,
})
}