Adapt path for self.agents_config and full options for agent and task yaml

CrewAi allows to use config=self.agents_config[‘researcher’] to configure an agent or task from an yaml file. Can the path to the config-file be changed.

The reason for it, I might have multiple crews, but I do not necessarily want to have all agents in one file.

By the way, which options in an yaml file for an agent or task are available. Did not find the full config possibility in docs.

Thanks.

Yes, you can!

For instance if inside the config folder I created another folder called ‘filewriter’, then lets say the crew is on the same project level as the config folder.

agents_config = “config/filewriter/agents.yaml”
tasks_config = “config/filewriter/tasks.yaml”

and yeah unless there was an update recently, you can only have the agents/tasks you are using in that config per crew.

And I haven’t tested out many of the agent/task properties in the yaml files, but I I know a few from: Agents - CrewAI

work in the yaml file. Hope this helps!

1 Like