From 83ba3d3f63be818cc070397a599771776af9081b Mon Sep 17 00:00:00 2001 From: hkr04 Date: Mon, 17 Mar 2025 14:24:03 +0800 Subject: [PATCH] fix bug in planning flow --- config.cpp | 4 ++-- flow/planning.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.cpp b/config.cpp index 647a2af..8dbcae2 100644 --- a/config.cpp +++ b/config.cpp @@ -13,13 +13,13 @@ std::mutex Config::_mutex; void Config::_load_initial_config() { try { auto config_path = _get_config_path(); - std::cout << "加载配置文件: " << config_path.string() << std::endl; + std::cout << "Loading config file from: " << config_path.string() << std::endl; const auto& data = toml::parse_file(config_path.string()); // 检查工具配置是否存在 if (!data.contains("llm") || !data["llm"].is_table()) { - throw std::runtime_error("MCP配置文件中找不到llm配置: "); + throw std::runtime_error("找不到llm配置: "); } const auto& llm_table = *data["llm"].as_table(); diff --git a/flow/planning.cpp b/flow/planning.cpp index 4299364..989d496 100644 --- a/flow/planning.cpp +++ b/flow/planning.cpp @@ -248,7 +248,7 @@ void PlanningFlow::_mark_step_completed() { {"command", "mark_step"}, {"plan_id", active_plan_id}, {"step_index", current_step_index}, - {"status", "completed"} + {"step_status", "completed"} }); logger->info( "Marked step " + std::to_string(current_step_index) + " as completed in plan " + active_plan_id