Build Agents • AI Agents Framework

build_agents: Build the agent objects from the YAML spec *without running them*.

build_agents

Method

</div>

This is a method of the AgentsGenerator class in the agents_generator module.

Build the agent objects from the YAML spec without running them.

This is the “build only” counterpart to :meth:generate_crew_and_kickoff and exists for callers that need the constructed :class:~praisonaiagents.Agent instances rather than a run result — e.g. the `praisonai eval evaluators, which drive an agent themselves. It reuses the same :meth:_prepare_for_run` normalisation so the agents are identical to what a real run would build.

Diagram

Input Data

Agent: build_agents

Output Result

Signature

python
def build_agents() -> Any

Returns

ResponseField Any

The constructed agent instances (empty list if none defined).

Uses

  • callable
  • NotImplementedError
  • builder

Source

View on GitHub

praisonai/agents_generator.py at line 1677


Related Documentation