(self)
| 12 | parameters: dict = field(default_factory=dict) # Agent parameters |
| 13 | |
| 14 | def create(self) -> Union[Agent, Task]: |
| 15 | path = ".".join(self.module.split(".")[:-1]) |
| 16 | mod = __import__(path, fromlist=[self.module.split(".")[-1]]) |
| 17 | return getattr(mod, self.module.split(".")[-1])(**self.parameters) |
| 18 | |
| 19 | @classmethod |
| 20 | def init_from_yaml(cls, yaml_path: str, update_parameters: Union[None, Dict] = None): |
no test coverage detected