TurnState

org.llm4s.agent.graph.toolloop.TurnState
final case class TurnState(steps: Int, outcome: Option[TurnOutcome], startAgent: Option[AgentId], startTransfer: Option[Transfer], priorValues: Map[String, PriorValue])

The current turn: the model calls it has made, its outcome once it has one, and what an output Block restores when it retracts the turn - the agent and transfer it started with, and priorValues: by key id, each key the turn may write, as it was before the turn and as the turn left it (PriorValue), one entry per key. Reset by each turn's input; a turn that ends clears priorValues (design ยง4.22).

Attributes

Source
LoopAgent.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product