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
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article