Suspend

org.llm4s.agent.graph.NodeResult.Suspend
final case class Suspend[Q, A](update: StateUpdate, question: Q, resumeAt: ResumeRef[Q, A]) extends NodeResult

Parks this task's work until question is answered. update commits with the superstep like any other; the run then pauses at the end of the superstep - siblings finish and commit, but no further superstep starts until a resume. The answer schedules resumeAt with Resumed(question, answer). That continuation stands in for this task: it fills this task's join arrival, so a barrier this task belongs to stays closed until the continuation completes.

Attributes

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product