Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/adk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Google ADK + Braintrust

Calls `braintrust.auto_instrument()` so Google ADK is patched automatically, then runs a weather agent against `gemini-2.0-flash` with one tool. The trace shows the runner span, the agent span, the LLM span, and the tool call.
Calls `braintrust.auto_instrument()` so Google ADK is patched automatically, then runs a weather agent against `gemini-3.8-flash` with one tool. The trace shows the runner span, the agent span, the LLM span, and the tool call.

## Run

Expand Down
2 changes: 1 addition & 1 deletion examples/adk/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_weather(location: str):
async def main():
agent = Agent(
name="weather_agent",
model="gemini-2.0-flash",
model="gemini-3.8-flash",
instruction="You are a helpful weather assistant.",
tools=[get_weather],
)
Expand Down
2 changes: 1 addition & 1 deletion examples/google_genai/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Google GenAI + Braintrust

Calls `braintrust.auto_instrument()` to patch the Google GenAI client, then runs a single `generate_content` call against `gemini-2.0-flash-001`. The trace captures the LLM span with token metrics.
Calls `braintrust.auto_instrument()` to patch the Google GenAI client, then runs a single `generate_content` call against `gemini-3.8-flash`. The trace captures the LLM span with token metrics.

## Run

Expand Down
2 changes: 1 addition & 1 deletion examples/google_genai/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
client = genai.Client()

response = client.models.generate_content(
model="gemini-2.0-flash-001",
model="gemini-3.8-flash",
Comment thread
AbhiPrasad marked this conversation as resolved.
Resolved
contents="What is the capital of Australia?",
)
print(response.text)
4 changes: 2 additions & 2 deletions integrations/adk-py/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ setup_adk(
# Create your ADK agent as normal
agent = LlmAgent(
tools=[get_weather, get_current_time],
model="gemini-2.0-flash-exp",
model="gemini-3.8-flash",
system_instruction="You are a helpful assistant that can check weather and time."
)

Expand Down Expand Up @@ -108,7 +108,7 @@ def search_flights(origin: str, destination: str, date: str) -> dict:
# Create agent with multiple tools
agent = LlmAgent(
tools=[get_weather, search_flights],
model="gemini-2.0-flash-exp",
model="gemini-3.8-flash",
system_instruction="You are a travel assistant."
)

Expand Down
2 changes: 1 addition & 1 deletion integrations/adk-py/examples/manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_user_info(name: str):

agent = CustomAgent(
name="hello_agent",
model="gemini-2.0-flash",
model="gemini-3.8-flash",
instruction="Use the appropriate tool based on the user's request. For greetings, use say_hello. For user info requests, use get_user_info.",
tools=[say_hello, get_user_info],
)
Expand Down
2 changes: 1 addition & 1 deletion integrations/adk-py/examples/mcp_tracing/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def main():
# Create agent with MCP filesystem tools
agent = LlmAgent(
name="filesystem_assistant",
model="gemini-2.0-flash-exp",
model="gemini-3.8-flash",
instruction="You are a helpful assistant that can read and list files. Be concise in your responses.",
tools=[
MCPToolset(
Expand Down
2 changes: 1 addition & 1 deletion integrations/adk-py/examples/multi_tool_agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_current_time(city: str) -> Dict[str, str]:

root_agent = LlmAgent(
name="weather_time_agent",
model="gemini-2.0-flash",
model="gemini-3.8-flash",
description=("Agent to answer questions about the time and weather in a city."),
instruction=("You are a helpful agent who can answer user questions about the time and weather in a city."),
tools=[get_weather, get_current_time],
Expand Down
4 changes: 2 additions & 2 deletions py/src/braintrust/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def auto_instrument(
# Google ADK
from google.adk import Agent
from google.adk.runners import Runner
agent = Agent(name="my_agent", model="gemini-2.0-flash")
agent = Agent(name="my_agent", model="gemini-3.8-flash")
runner = Runner(agent=agent, app_name="my_app")

# Pydantic AI
Expand All @@ -151,7 +151,7 @@ def auto_instrument(
# Google GenAI
from google.genai import Client
client = Client()
client.models.generate_content(model="gemini-2.0-flash", contents="Hello!")
client.models.generate_content(model="gemini-3.8-flash", contents="Hello!")
```
"""
if span_customizers is not None:
Expand Down
Loading