You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Exclude BaseAgent.parent_agent from serialization
Otherwise, serialization fails due to circular references. PiperOrigin-RevId: 878339838
This commit is contained in:
committed by
Copybara-Service
parent
63f450e023
commit
2b8ccd4a00
@@ -122,7 +122,9 @@ class BaseAgent(BaseModel):
|
||||
One-line description is enough and preferred.
|
||||
"""
|
||||
|
||||
parent_agent: Optional[BaseAgent] = Field(default=None, init=False)
|
||||
parent_agent: Optional[BaseAgent] = Field(
|
||||
default=None, init=False, exclude=True
|
||||
)
|
||||
"""The parent agent of this agent.
|
||||
|
||||
Note that an agent can ONLY be added as sub-agent once.
|
||||
|
||||
Reference in New Issue
Block a user