llama-stack-mirror/tests/integration/agents
Jaideep Rao 4aa586d7af Fix: Ensure that tool calls with no arguments get handled correctly #3560
When a model decides to use an MCP tool call that requires no arguments, it sets the arguments field to None. This causes validation errors because this field gets removed when being parsed by an openai compatible inference provider like vLLM
This PR ensures that, as soon as the tool call args are accumulated while streaming, we check to ensure no tool call function arguments are set to None - if they are we replace them with "{}"

Closes #3456

Added new unit test to verify that any tool calls with function arguments set to None get handled correctly

Signed-off-by: Jaideep Rao <jrao@redhat.com>
2025-09-30 07:58:03 -04:00
..
__init__.py fix: remove ruff N999 (#1388) 2025-03-07 11:14:04 -08:00
test_agents.py fix(ci, tests): ensure uv environments in CI are kosher, record tests (#3193) 2025-08-18 17:02:24 -07:00
test_openai_responses.py Fix: Ensure that tool calls with no arguments get handled correctly #3560 2025-09-30 07:58:03 -04:00
test_persistence.py chore: default to pytest asyncio-mode=auto (#2730) 2025-07-11 13:00:24 -07:00