(agent_config: Dict)
| 62 | |
| 63 | |
| 64 | def load_agent(agent_config: Dict) -> BaseAgent: |
| 65 | agent_type = agent_config.pop("agent_type", "conversation") |
| 66 | agent = agent_registry.build(agent_type, **agent_config) |
| 67 | return agent |
| 68 | |
| 69 | |
| 70 | def prepare_task_config(task, tasks_dir, postfix=''): |