Skip to content

Commit 6699783

Browse files
committed
feat: use patched ADK fork that fixes Groq tool calling
Install google-adk from vitas/adk-python@fix/groq-tool-calling which removes the global add_function_to_prompt=True that broke native tool calling for Groq/OpenAI/Anthropic. Verified: first LLM call now uses proper tool_calls JSON (9563 tokens used). Second call hits Groq free tier rate limit (12K TPM) but the tool calling format is correct. PR: google/adk-python#4985 Signed-off-by: Vitas <vitas@users.noreply.github.com>
1 parent 800e58b commit 6699783

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

demo/kagent/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ RUN git clone --depth 1 --branch "${KAGENT_GIT_REF}" https://github.com/kagent-d
1515

1616
WORKDIR /opt/kagent-src/python
1717
# Pin litellm to safe version — v1.82.7+ is a supply chain attack (credential stealer).
18-
# See: https://github.com/BerriAI/litellm/issues/24512
18+
# Use patched ADK fork that fixes Groq tool calling (google/adk-python#4985).
1919
RUN uv sync --package kagent-adk && \
20-
uv pip install 'litellm<1.82.7'
20+
uv pip install 'litellm<1.82.7' && \
21+
uv pip install 'google-adk @ git+https://github.com/vitas/adk-python.git@fix/groq-tool-calling'
2122

2223
ENV PATH="/opt/kagent-src/python/.venv/bin:${PATH}"
2324

0 commit comments

Comments
 (0)