@@ -30,8 +30,11 @@ def roll_die(sides: int) -> int:
3030roll_agent = Agent (
3131 name = "roll_agent" ,
3232 model = Gemini (
33- # model="gemini-2.0-flash-live-preview-04-09", # for Vertex project
34- model = "gemini-live-2.5-flash-preview" , # for AI studio key
33+ # see https://docs.cloud.google.com/vertex-ai/generative-ai/docs/migrate
34+ # for vertex model names
35+ model = "gemini-live-2.5-flash-native-audio" , # vertex
36+ # see https://ai.google.dev/gemini-api/docs/models for AIS model names
37+ # model='gemini-2.5-flash-native-audio-latest', # for AI studio
3538 speech_config = types .SpeechConfig (
3639 voice_config = types .VoiceConfig (
3740 prebuilt_voice_config = types .PrebuiltVoiceConfig (
@@ -82,8 +85,11 @@ def check_prime(nums: list[int]) -> str:
8285prime_agent = Agent (
8386 name = "prime_agent" ,
8487 model = Gemini (
85- # model="gemini-2.0-flash-live-preview-04-09", # for Vertex project
86- model = "gemini-live-2.5-flash-preview" , # for AI studio key
88+ # see https://docs.cloud.google.com/vertex-ai/generative-ai/docs/migrate
89+ # for vertex model names
90+ model = "gemini-live-2.5-flash-native-audio" , # vertex
91+ # see https://ai.google.dev/gemini-api/docs/models for AIS model names
92+ # model='gemini-2.5-flash-native-audio-latest', # for AI studio
8793 speech_config = types .SpeechConfig (
8894 voice_config = types .VoiceConfig (
8995 prebuilt_voice_config = types .PrebuiltVoiceConfig (
@@ -124,8 +130,11 @@ def get_current_weather(location: str):
124130root_agent = Agent (
125131 # find supported models here: https://google.github.io/adk-docs/get-started/streaming/quickstart-streaming/
126132 model = Gemini (
127- # model="gemini-2.0-flash-live-preview-04-09", # for Vertex project
128- model = "gemini-live-2.5-flash-preview" , # for AI studio key
133+ # see https://docs.cloud.google.com/vertex-ai/generative-ai/docs/migrate
134+ # for vertex model names
135+ model = "gemini-live-2.5-flash-native-audio" , # vertex
136+ # see https://ai.google.dev/gemini-api/docs/models for AIS model names
137+ # model='gemini-2.5-flash-native-audio-latest', # for AI studio
129138 speech_config = types .SpeechConfig (
130139 voice_config = types .VoiceConfig (
131140 prebuilt_voice_config = types .PrebuiltVoiceConfig (
0 commit comments