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
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
def goto(target: NodeRef[Unit]): Command
def remove(key: StateKey[_, _]): Command
def send[I](target: NodeRef[I], payload: I): Command
def update[A, U](key: StateKey[A, U], value: U): Command

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product