We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17be383 commit 253e664Copy full SHA for 253e664
tests/utils.py
@@ -90,6 +90,7 @@ async def run_llm_tool_loop(
90
response = await acompletion(model=model, messages=messages, tools=tools)
91
92
while response.choices and response.choices[0].message.tool_calls:
93
+ messages.append(response.choices[0].message)
94
for tool_call in response.choices[0].message.tool_calls:
95
tool_name = tool_call.function.name
96
args = (
@@ -101,7 +102,6 @@ async def run_llm_tool_loop(
101
102
mcp_client, tool_name, args
103
)
104
tools_called.append(mcp_tc)
- messages.append(response.choices[0].message)
105
messages.append(
106
Message(role="tool", tool_call_id=tool_call.id, content=result_text)
107
0 commit comments