feat: Add ADK examples for litellm with add_function_to_prompt

Add examples for for https://github.com/google/adk-python/issues/1273

PiperOrigin-RevId: 775352677
This commit is contained in:
Genquan Duan
2025-06-24 13:08:44 -07:00
committed by Copybara-Service
parent abc89d2c81
commit f33e0903b2
5 changed files with 183 additions and 3 deletions
@@ -17,11 +17,8 @@ from google.adk.models.lite_llm import LiteLlm
from google.genai import types
from google.genai.types import Content
from google.genai.types import Part
import litellm
import pytest
litellm.add_function_to_prompt = True
_TEST_MODEL_NAME = "vertex_ai/meta/llama-3.1-405b-instruct-maas"
_SYSTEM_PROMPT = """