To Graph • AI Agent SDK
to_graph: This team's definition as graph data (“praisonai.graph/1“).
to_graph
Method
</div>
This is a method of the AgentTeam class in the agents module.
This team’s definition as graph data (`praisonai.graph/1`).
Covers agents, tasks (context/depends_on, next_tasks, conditions), tools, hand-offs, human review and the hierarchical manager. Node ids are stable across processes and match replay events’ `node_id`.
Signature
def to_graph() -> Dict[str, Any]Returns
ResponseField
Dict[str, Any]The result of the operation.
Uses
to_graph
Used By
Source
View on GitHubpraisonaiagents/agents/agents.py at line 2536