Update core scripts and tools schema

This commit is contained in:
Jiaqing Liang
2026-02-09 14:55:41 +08:00
parent 3f1fad8ab9
commit 61daedec3f
4 changed files with 4 additions and 3 deletions

View File

@@ -45,6 +45,7 @@ def agent_runner_loop(client, system_prompt, user_input, handler, tools_schema,
]
for turn in range(max_turns):
yield f"**LLM Running (Turn {turn+1}) ...**\n\n"
if (turn+1) % 10 == 0: client.last_tools = '' # 每10轮重置一次工具描述避免上下文过大导致的模型性能下降
response_gen = client.chat(messages=messages, tools=tools_schema)
response = yield from response_gen
yield '\n\n'