StateUpdate

org.llm4s.agent.graph.StateUpdate
See theStateUpdate companion object
final class StateUpdate

An ordered list of state operations emitted by one node task.

Operations apply in emission order. combine is sequential composition: a.combine(b) applies a's operations and then b's, so for a StateKey.replace key the later value wins and for an operation-valued key both operations apply. Updates from different tasks in one superstep are never combined; the scheduler applies them task by task in frontier order.

Attributes

Companion
object
Source
StateUpdate.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Sequential composition: this update's operations, then next's.

Sequential composition: this update's operations, then next's.

Attributes

Source
StateUpdate.scala

Attributes

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

Appends a removal of key's stored entry; later reads observe the key's initial value. It does not remove one item from a collection - that is an ordinary typed update.

Appends a removal of key's stored entry; later reads observe the key's initial value. It does not remove one item from a collection - that is an ordinary typed update.

Attributes

Source
StateUpdate.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
StateUpdate.scala
def update[A, U](key: StateKey[A, U], value: U): StateUpdate

Appends an update operation for key.

Appends an update operation for key.

Attributes

Source
StateUpdate.scala