Skip to content

Commit 68f3413

Browse files
wuliang229copybara-github
authored andcommitted
feat(config): add ParallelAgent and SequentialAgent to the loader
PiperOrigin-RevId: 781712004
1 parent a313c2c commit 68f3413

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/google/adk/agents/config_agent_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
from .llm_agent import LlmAgentConfig
2727
from .loop_agent import LoopAgent
2828
from .loop_agent import LoopAgentConfig
29+
from .parallel_agent import ParallelAgent
30+
from .parallel_agent import ParallelAgentConfig
31+
from .sequential_agent import SequentialAgent
32+
from .sequential_agent import SequentialAgentConfig
2933

3034

3135
@working_in_progress("from_config is not ready for use.")
@@ -50,6 +54,10 @@ def from_config(config_path: str) -> BaseAgent:
5054
return LlmAgent.from_config(config.root)
5155
elif isinstance(config.root, LoopAgentConfig):
5256
return LoopAgent.from_config(config.root)
57+
elif isinstance(config.root, ParallelAgentConfig):
58+
return ParallelAgent.from_config(config.root)
59+
elif isinstance(config.root, SequentialAgentConfig):
60+
return SequentialAgent.from_config(config.root)
5361
else:
5462
raise ValueError("Unsupported config type")
5563

0 commit comments

Comments
 (0)