Skip to content

Commit d2dcc7e

Browse files
doraemonlovewangjiaju.716
andauthored
fix: change subagents type to BaseAgent (#46)
Co-authored-by: wangjiaju.716 <[email protected]>
1 parent 21a564e commit d2dcc7e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ ipython_config.py
9898
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
9999
# This is especially recommended for binary packages to ensure reproducibility, and is more
100100
# commonly ignored for libraries.
101-
#uv.lock
101+
uv.lock
102102

103103
# poetry
104104
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.

veadk/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from veadk.tracing.base_tracer import BaseTracer
4040
from veadk.utils.logger import get_logger
4141
from veadk.utils.patches import patch_asyncio
42+
from google.adk.agents.base_agent import BaseAgent
4243

4344
patch_asyncio()
4445
logger = get_logger(__name__)
@@ -77,7 +78,7 @@ class Agent(LlmAgent):
7778
tools: list[ToolUnion] = []
7879
"""The tools provided to agent."""
7980

80-
sub_agents: list[Agent] = Field(default_factory=list, exclude=True)
81+
sub_agents: list[BaseAgent] = Field(default_factory=list, exclude=True)
8182
"""The sub agents provided to agent."""
8283

8384
knowledgebase: Optional[KnowledgeBase] = None

0 commit comments

Comments
 (0)