fix(agent-runner): prepare local runner functional tests

This commit is contained in:
huanghuoguoguo
2026-07-15 08:11:52 +08:00
parent 1af106aa92
commit c55be79f9f
3 changed files with 246 additions and 0 deletions
@@ -877,6 +877,7 @@ class TestInvokeLLM:
called_kwargs = litellmchat.acompletion.await_args.kwargs
assert called_kwargs['tools'] == [{'type': 'function', 'function': {'name': 'get_weather'}}]
assert called_kwargs['tool_choice'] == 'auto'
assert called_kwargs['_skip_mcp_handler'] is True
@pytest.mark.asyncio
async def test_build_completion_args_preserves_explicit_tool_choice(self):