Plan

org.llm4s.agent.orchestration.Plan
See thePlan companion object
case class Plan(nodes: Map[String, Node[_, _]], edges: List[Edge[_, _]], entryPoints: List[Node[_, _]], exitPoints: List[Node[_, _]])

A complete execution plan represented as a DAG

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getParallelBatches: Either[String, List[List[Node[_, _]]]]

Get nodes that can execute in parallel (no dependencies between them) Uses level-based batching: nodes at the same dependency level can run in parallel

Get nodes that can execute in parallel (no dependencies between them) Uses level-based batching: nodes at the same dependency level can run in parallel

Attributes

def topologicalOrder: Either[String, List[Node[_, _]]]

Get topological ordering of nodes for execution

Get topological ordering of nodes for execution

Attributes

def validate: Either[String, Unit]

Validate that the plan forms a valid DAG (acyclic)

Validate that the plan forms a valid DAG (acyclic)

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product