Command

org.llm4s.agent.graph.Command
See theCommand companion object
final case class Command(update: StateUpdate, routes: List[Route])

A node's state update and routes. Static edges declared on the builder are additive: they are scheduled before the command's routes. A command with no routes and no outgoing edges ends that branch; the run completes when no branch has work left.

Attributes

Companion
object
Source
GraphNode.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def fanOut[I](join: DynamicJoin, target: NodeRef[I], payloads: Vector[I]): Command

Attributes

Source
GraphNode.scala
def goto(target: NodeRef[Unit]): Command

Attributes

Source
GraphNode.scala
def remove(key: StateKey[_, _]): Command

Attributes

Source
GraphNode.scala
def send[I](target: NodeRef[I], payload: I): Command

Attributes

Source
GraphNode.scala
def update[A, U](key: StateKey[A, U], value: U): Command

Attributes

Source
GraphNode.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product