We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f5bea commit 0e173d7Copy full SHA for 0e173d7
src/google/adk/agents/base_agent.py
@@ -32,6 +32,7 @@
32
33
from google.genai import types
34
from opentelemetry import trace
35
+from pydantic import alias_generators
36
from pydantic import BaseModel
37
from pydantic import ConfigDict
38
from pydantic import Field
@@ -604,7 +605,11 @@ class BaseAgentConfig(BaseModel):
604
605
Do not use this class directly. It's the base class for all agent configs.
606
"""
607
- model_config = ConfigDict(extra='forbid')
608
+ model_config = ConfigDict(
609
+ extra='forbid',
610
+ alias_generator=alias_generators.to_camel,
611
+ populate_by_name=True,
612
+ )
613
614
agent_class: Literal['BaseAgent'] = 'BaseAgent'
615
"""Required. The class of the agent. The value is used to differentiate
0 commit comments