File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
contributing/samples/live_bidi_streaming_single_agent Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1414
1515import random
1616
17- from google .adk import Agent
17+ from google .adk . agents . agent import Agent
1818from google .adk .tools .tool_context import ToolContext
1919from google .genai import types
2020
@@ -67,14 +67,14 @@ async def check_prime(nums: list[int]) -> str:
6767root_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.
You can’t perform that action at this time.
0 commit comments