From 8c00cbc87aedd97fa9ea09d83eb167ac5a404cdb Mon Sep 17 00:00:00 2001 From: Liu An Date: Tue, 16 Sep 2025 13:56:56 +0800 Subject: [PATCH] Fix(agent template): wrap template variables in curly braces (#10109) ### What problem does this PR solve? Updated SQL assistant template to wrap variables like 'sys.query' and 'Agent:WickedGoatsDivide@content' in curly braces for better template variable syntax consistency. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/templates/sql_assistant.json | 40 +++++++++++------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/agent/templates/sql_assistant.json b/agent/templates/sql_assistant.json index d11de2363..27ac46ea6 100644 --- a/agent/templates/sql_assistant.json +++ b/agent/templates/sql_assistant.json @@ -83,7 +83,7 @@ }, "password": "20010812Yy!", "port": 3306, - "sql": "Agent:WickedGoatsDivide@content", + "sql": "{Agent:WickedGoatsDivide@content}", "username": "13637682833@163.com" } }, @@ -114,9 +114,7 @@ "params": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "ed31364c727211f0bdb2bafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -124,7 +122,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -145,9 +143,7 @@ "params": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "0f968106727311f08357bafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -155,7 +151,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -176,9 +172,7 @@ "params": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "4ad1f9d0727311f0827dbafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -186,7 +180,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -347,9 +341,7 @@ "form": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "ed31364c727211f0bdb2bafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -357,7 +349,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -387,9 +379,7 @@ "form": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "0f968106727311f08357bafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -397,7 +387,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -427,9 +417,7 @@ "form": { "cross_languages": [], "empty_response": "", - "kb_ids": [ - "4ad1f9d0727311f0827dbafe6e7908e6" - ], + "kb_ids": [], "keywords_similarity_weight": 0.7, "outputs": { "formalized_content": { @@ -437,7 +425,7 @@ "value": "" } }, - "query": "sys.query", + "query": "{sys.query}", "rerank_id": "", "similarity_threshold": 0.2, "top_k": 1024, @@ -539,7 +527,7 @@ }, "password": "20010812Yy!", "port": 3306, - "sql": "Agent:WickedGoatsDivide@content", + "sql": "{Agent:WickedGoatsDivide@content}", "username": "13637682833@163.com" }, "label": "ExeSQL",