factor_agent.config.RoleConfig.from_dict#

classmethod RoleConfig.from_dict(data, role='role')[source]#

Split role’s YAML mapping into the backend, the model and the rest.

Raises:
ValueError

If the backend name is unknown, or the rest holds an option that looks like a key (a key is read only from the environment variable api_key_env names).

TypeError

If the rest holds an option the backend does not take, listing those it does.