JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:ttse取消传入轨迹导出配置,复用已有OTLP轨迹
xinyang_balie78d15eabe33
diff --git a/jiuwenswarm/resources/config.yaml b/jiuwenswarm/resources/config.yamlindex 52ec6e8f13..5617565610 100644--- a/jiuwenswarm/resources/config.yaml+++ b/jiuwenswarm/resources/config.yaml@@ -702,9 +702,6 @@ react:enabled: true # 默认开启;true 才挂载 TTSERail(仅 agent 模式)evolve_enabled: true # 是否从轨迹归纳 FACT/TIPinject_enabled: true # 是否注入系统 prompt- # Bench-only: dump invoke messages for post-score induction. Default off.- # Must stay false in production; enabling writes full conversation JSON.- trajectory_export_enabled: false# Auto-dream(经验库卫生:TTL 剪枝 / 近重合并 / TIP 清洗)dream_enabled: true # 是否启用静默 Auto-dreamdream_interval: 50 # 每 N 次非 follow-up 任务迭代尝试一次 dreamdiff --git a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.pyindex 0d8ff4c4c7..c37fd40fbe 100644--- a/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py+++ b/jiuwenswarm/server/runtime/agent_adapter/interface_deep.py@@ -7372,22 +7372,17 @@ class JiuWenSwarmDeepAdapter:trajectory_export_path = str(ttse_cfg.get("trajectory_export_path") or "").strip()apply_config = getattr(rail, "apply_runtime_config", None)if callable(apply_config):+ # Older agent-core apply_runtime_config only accepts store/evolve/inject.+ # Trajectory export flags are synced via _ttse_config below.apply_config(store_path=store_path,evolve_enabled=evolve_enabled,inject_enabled=inject_enabled,- trajectory_export_enabled=trajectory_export_enabled,- trajectory_export_path=trajectory_export_path,)cfg_obj = getattr(rail, "_ttse_config", None)if cfg_obj is not None:cfg_obj.trajectory_export_enabled = trajectory_export_enabledcfg_obj.trajectory_export_path = trajectory_export_path- if not callable(apply_config):- logger.debug(- "[JiuWenSwarmDeepAdapter] TTSERail.apply_runtime_config unavailable; "- "synced trajectory export via private _ttse_config"- )else:logger.debug("[JiuWenSwarmDeepAdapter] TTSERail._ttse_config missing; "diff --git a/tests/unit_tests/test_resource_config.py b/tests/unit_tests/test_resource_config.pyindex 4bfad93551..06ba9c74ab 100644--- a/tests/unit_tests/test_resource_config.py+++ b/tests/unit_tests/test_resource_config.py@@ -57,6 +57,6 @@ def test_default_ttse_config_is_enabled():assert react["ttse"]["enabled"] is Trueassert react["evolution"]["enabled"] is Trueassert react["ttse"]["dream_interval"] == 50- assert react["ttse"]["trajectory_export_enabled"] is False+ assert "trajectory_export_enabled" not in react["ttse"]assert "trajectory_export_path" not in react["ttse"]assert "ttse_consult" not in react["tool_lazy_load"]["eager_tools"]