File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 26
26
from .llm_agent import LlmAgentConfig
27
27
from .loop_agent import LoopAgent
28
28
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
29
33
30
34
31
35
@working_in_progress ("from_config is not ready for use." )
@@ -50,6 +54,10 @@ def from_config(config_path: str) -> BaseAgent:
50
54
return LlmAgent .from_config (config .root )
51
55
elif isinstance (config .root , LoopAgentConfig ):
52
56
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 )
53
61
else :
54
62
raise ValueError ("Unsupported config type" )
55
63
You can’t perform that action at this time.
0 commit comments