fix: add requests to pip install & tune max_turns/prompt

This commit is contained in:
Jiaqing Liang
2026-04-23 17:21:05 +08:00
parent fd4c833511
commit 6091bf0c6f
4 changed files with 11 additions and 18 deletions

View File

@@ -141,7 +141,7 @@ class GeneraticAgent:
if 'gpt' in self.get_llm_name(model=True): handler._done_hooks.append('请确定任务是否完成如果完成请给出信息完整的简报回答如未完成需要继续工具调用直到完成任务确实需要问用户应使用ask_user工具')
# although new handler, the **full** history is in llmclient, so it is full history!
gen = agent_runner_loop(self.llmclient, sys_prompt, user_input,
handler, TOOLS_SCHEMA, max_turns=40, verbose=self.verbose)
handler, TOOLS_SCHEMA, max_turns=70, verbose=self.verbose)
try:
full_resp = ""; last_pos = 0
for chunk in gen: