Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def agent_runner_loop(client, system_prompt, user_input, handler, tools_schema,
if verbose: turnstr = f'**{turnstr}**'
if yield_info: yield {'turn': turn}
yield f"\n{turnstr}\n\n"
if turn%10 == 0: client.last_tools = '' # 每10轮重置一次工具描述
if turn%10 == 0: client.last_tools = '' # 每10轮重置一次工具描述 / Reset the tool description every 10 rounds
_hook('turn_before', locals())
_hook('llm_before', locals())
response_gen = client.chat(messages=messages, tools=tools_schema)
Expand Down