hotfix if no syntax, generic

This commit is contained in:
dal 2025-05-09 14:24:16 -06:00
parent 5939f43288
commit 17837e6486
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 4 additions and 4 deletions

View File

@ -101,8 +101,8 @@ impl ToolExecutor for CreateMetricFilesTool {
let data_source_syntax = match self.agent.get_state_value("data_source_syntax").await {
Some(Value::String(syntax_str)) => syntax_str,
Some(_) => bail!("Data source syntax is not a string"),
None => bail!("Data source syntax not found in agent state"),
Some(_) => "generic".to_string(),
None => "generic".to_string(),
};
// Collect results from processing each file concurrently

View File

@ -271,8 +271,8 @@ impl ToolExecutor for ModifyMetricFilesTool {
let data_source_dialect = match self.agent.get_state_value("data_source_syntax").await {
Some(Value::String(dialect_str)) => dialect_str,
Some(_) => bail!("Data source dialect is not a string"),
None => bail!("Data source dialect not found in agent state"),
Some(_) => "generic".to_string(),
None => "generic".to_string(),
};
// Map to store validated dataset IDs for each successfully updated metric