Skip to content

Commit 463dcee

Browse files
hangfeicopybara-github
authored andcommitted
chore: specify the default sides for roll dice agent in bidi
PiperOrigin-RevId: 806468232
1 parent 4f07228 commit 463dcee

File tree

1 file changed

+4
-4
lines changed
  • contributing/samples/live_bidi_streaming_single_agent

1 file changed

+4
-4
lines changed

contributing/samples/live_bidi_streaming_single_agent/agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import random
1616

17-
from google.adk import Agent
17+
from google.adk.agents.agent import Agent
1818
from google.adk.tools.tool_context import ToolContext
1919
from google.genai import types
2020

@@ -67,14 +67,14 @@ async def check_prime(nums: list[int]) -> str:
6767
root_agent = Agent(
6868
# model='gemini-2.0-flash-live-preview-04-09', # for Vertex project
6969
model='gemini-2.0-flash-live-001', # for AI studio key
70-
name='hello_world_agent',
70+
name='roll_dice_agent',
7171
description=(
72-
'hello world agent that can roll a dice of 8 sides and check prime'
72+
'hello world agent that can roll a dice of 6 sides and check prime'
7373
' numbers.'
7474
),
7575
instruction="""
7676
You roll dice and answer questions about the outcome of the dice rolls.
77-
You can roll dice of different sizes.
77+
You can roll dice of different sizes. When the user doesn't specify the number of sides, you should assume 6 sides.
7878
You can use multiple tools in parallel by calling functions in parallel(in one request and in one round).
7979
It is ok to discuss previous dice roles, and comment on the dice rolls.
8080
When you are asked to roll a die, you must call the roll_die tool with the number of sides. Be sure to pass in an integer. Do not pass in a string.

0 commit comments

Comments
 (0)