You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: make LlmAgent.model optional with a default fallback
LlmAgent now resolves model from ancestors or a system default (gemini-2.5-flash) when unset. Added LlmAgent.set_default_model() to override the default globally
Co-authored-by: George Weale <[email protected]>
PiperOrigin-RevId: 853006116
Copy file name to clipboardExpand all lines: src/google/adk/agents/config_schemas/AgentConfig.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2461,7 +2461,7 @@
2461
2461
}
2462
2462
],
2463
2463
"default": null,
2464
-
"description": "Optional. LlmAgent.model. If not set, the model will be inherited from the ancestor.",
2464
+
"description": "Optional. LlmAgent.model. Provide a model name string (e.g. \"gemini-2.0-flash\"). If not set, the model will be inherited from the ancestor or fall back to the system default (gemini-2.5-flash unless overridden via LlmAgent.set_default_model). To construct a model instance from code, use model_code.",
0 commit comments