adk-python/tests/unittests
Selcuk Gun b181cbc8bc fix: Handle non-indexed function call chunks with incremental fallback index
This is in response to the litellm v1.71.2 + ollama v0.9.0 sending function call chunks with 0 indices across multiple calls and lacking call ids.

Solutions introduced:
1. increment fallback index when accumulated arg becomes json parsable.
2. tolerate finish reason == stop when tool calls are present
3. fallback to index when tool call id is None

Fixes https://github.com/google/adk-python/issues/294

PiperOrigin-RevId: 766258344
2025-06-02 10:51:56 -07:00
..
agents chore: reformat the codes using autoformat.sh 2025-05-22 09:43:54 -07:00
artifacts chore: reformat the codes using autoformat.sh 2025-05-22 09:43:54 -07:00
auth chore: reformat the codes using autoformat.sh 2025-05-22 09:43:54 -07:00
cli feat: Add an option to use gcs artifact service in adk web. 2025-06-01 00:28:49 -07:00
code_executors chore: auto-format files. 2025-05-29 19:24:16 -07:00
evaluation chore: reformat the codes using autoformat.sh 2025-05-22 09:43:54 -07:00
fast_api chore: fix fast api ut 2025-05-29 16:40:40 -07:00
flows fix: Call all tools in parallel calls during partial authentication 2025-05-31 13:14:06 -07:00
models fix: Handle non-indexed function call chunks with incremental fallback index 2025-06-02 10:51:56 -07:00
sessions fix: Continue fetching events if there are multiple pages. 2025-05-29 19:42:50 -07:00
streaming Move public_utils to utils in tests 2025-05-21 16:35:11 -07:00
tools Copybara import of the project: 2025-06-02 09:20:41 -07:00
utils Move public_utils to utils in tests 2025-05-21 16:35:11 -07:00
__init__.py Support async agent and model callbacks 2025-05-06 15:14:10 -07:00
conftest.py Moves unittests to root folder and adds github action to run unit tests. (#72) 2025-04-11 08:25:59 -07:00
test_telemetry.py Make tool_call one span for telemetry 2025-05-29 11:47:40 -07:00
testing_utils.py refactor: rename agent_dir to agents_dir and rename app_id to app_name in fast_api.py to make it consistent among every endpoints 2025-05-26 11:51:19 -07:00