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

This commit is contained in:
huanghuoguoguo
2026-07-15 08:11:52 +08:00
parent 32216a82f5
commit d871baab68
3 changed files with 246 additions and 0 deletions
@@ -715,6 +715,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):