@@ -169,17 +169,15 @@ def test_tool_using_agent(caplog: LogCap) -> None:
169169 with Client () as client :
170170 llm = client .llm .model (model_id )
171171 chat = Chat ()
172- chat .add_user_message (
173- "What is the sum of 123 and the largest prime smaller than 100?"
174- )
172+ chat .add_user_message ("What is the sum of 123 and 3210?" )
175173 tools = [ADDITION_TOOL_SPEC ]
176174 # Ensure ignoring the round index passes static type checks
177175 predictions : list [PredictionResult [str ]] = []
178176
179177 act_result = llm .act (chat , tools , on_prediction_completed = predictions .append )
180178 assert len (predictions ) > 1
181179 assert act_result .rounds == len (predictions )
182- assert "220 " in predictions [- 1 ].content
180+ assert "3333 " in predictions [- 1 ].content
183181
184182 for _logger_name , log_level , message in caplog .record_tuples :
185183 if log_level != logging .INFO :
@@ -189,7 +187,7 @@ def test_tool_using_agent(caplog: LogCap) -> None:
189187 else :
190188 assert False , "Failed to find tool call logging entry"
191189 assert "123" in message
192- assert "97 " in message
190+ assert "3210 " in message
193191
194192
195193@pytest .mark .lmstudio
@@ -201,9 +199,7 @@ def test_tool_using_agent_callbacks(caplog: LogCap) -> None:
201199 with Client () as client :
202200 llm = client .llm .model (model_id )
203201 chat = Chat ()
204- chat .add_user_message (
205- "What is the sum of 123 and the largest prime smaller than 100?"
206- )
202+ chat .add_user_message ("What is the sum of 123 and 3210?" )
207203 tools = [ADDITION_TOOL_SPEC ]
208204 round_starts : list [int ] = []
209205 round_ends : list [int ] = []
0 commit comments