factor_agent.llm.base.make_backend#

make_backend(spec)[source]#

Build the backend a role’s config names in spec["backend"].

Raises:
ValueError

If the backend name is unknown, or the config holds a key: keys come only from environment variables (api_key_env names one).