ResumeRef

org.llm4s.agent.graph.ResumeRef
final class ResumeRef[Q, A]

A handle to a node that continues suspended work: it consumes Resumed[Q, A]. Issued by GraphBuilder.declareResume; a node may suspend only to a resume handle. The question and answer codecs belong to the graph - a checkpoint stores the question as JSON and a resume supplies the answer as JSON, and both are decoded here.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def answer(value: A): Value

Encodes an answer for CompiledGraph.resume or GraphRuntime.resume.

Encodes an answer for CompiledGraph.resume or GraphRuntime.resume.

Attributes

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

Concrete fields

val node: NodeRef[Resumed[Q, A]]