diff --git a/agent/llm_flow_extractor.go b/agent/llm_flow_extractor.go index 79a66987..15ce752d 100644 --- a/agent/llm_flow_extractor.go +++ b/agent/llm_flow_extractor.go @@ -252,7 +252,7 @@ func allowedFieldSpecsForSkillSession(session skillSession, lang string) []llmFl add(&out, "show_in_competition", displayCatalogFieldName("show_in_competition", lang), false) case "strategy_management": if session.Action == "create" || session.Action == "update_config" { - add(&out, "config_patch", strategyConfigPatchFieldDescription(lang), false) + add(&out, "config_patch", "Partial StrategyConfig JSON patch inferred from the user's strategy intent. Use this for strategy requirements such as target coins, trend style, short/long bias, indicators, risk, timeframes, and prompt sections.", false) } if session.Action == "update_prompt" { add(&out, "prompt", "Full strategy prompt text to write into the strategy custom prompt.", false) @@ -270,10 +270,6 @@ func allowedFieldSpecsForSkillSession(session skillSession, lang string) []llmFl return out } -func strategyConfigPatchFieldDescription(lang string) string { - return "Partial StrategyConfig JSON patch inferred from the user's strategy intent. Use this for strategy requirements such as target coins, trend style, short/long bias, indicators, risk, timeframes, and prompt sections." -} - func currentFieldValuesForSkillSession(session skillSession) map[string]string { values := map[string]string{} for key, value := range session.Fields { diff --git a/agent/tools.go b/agent/tools.go index e381451d..45082d78 100644 --- a/agent/tools.go +++ b/agent/tools.go @@ -148,7 +148,7 @@ func compactManageStrategyTool(tool mcp.Tool) mcp.Tool { "lang": map[string]any{"type": "string", "enum": []string{"zh", "en"}}, "is_public": map[string]any{"type": "boolean"}, "config_visible": map[string]any{"type": "boolean"}, - "config": map[string]any{"type": "object", "description": "Strategy config patch. Use precise StrategyConfig field paths/objects from the user request; grid risk fields such as max_drawdown_pct, stop_loss_pct, and daily_loss_limit_pct belong under grid_config. Omit when listing/querying/deleting/activating/duplicating."}, + "config": map[string]any{"type": "object", "description": "Strategy config patch. Use precise field paths/objects from the user request; omit when listing/querying/deleting/activating/duplicating."}, }, "required": []string{"action"}, }