Skip to main content

build_agents

Method
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.

Signature

Returns

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

Uses

  • callable
  • NotImplementedError
  • builder

Source

View on GitHub

praisonai/agents_generator.py at line 1631

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents