Skip to content

Commit 9d0491a

Browse files
committed
✨ Agent duplicate name handling logic improvement #1622
[Specification Details] 1.Review comments modification.
1 parent 42ebd2e commit 9d0491a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

backend/prompts/utils/prompt_generate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ FEW_SHOTS_SYSTEM_PROMPT: |-
165165
166166
思考:我已经获得了快速排序的python代码,现在我将生成最终回答。
167167
快速排序的python代码如下:
168+
代码:
168169
```<DISPLAY:python>
169170
def quick_sort(arr):
170171
if len(arr) <= 1:

backend/services/agent_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from services.memory_config_service import build_memory_context
5656
from services.remote_mcp_service import add_remote_mcp_server_list
5757
from services.tool_configuration_service import update_tool_list
58+
from services.prompt_service import call_llm_for_system_prompt
5859
from utils.auth_utils import get_current_user_info, get_user_language
5960
from utils.config_utils import tenant_config_manager
6061
from utils.memory_utils import build_memory_config
@@ -306,7 +307,6 @@ def _regenerate_agent_value_with_llm(
306307

307308
for attempt in range(1, max_attempts + 1):
308309
try:
309-
from services.prompt_service import call_llm_for_system_prompt
310310
regenerated_value = call_llm_for_system_prompt(
311311
model_id=model_id,
312312
user_prompt=user_prompt,

0 commit comments

Comments
 (0)