AttemptPlan

org.llm4s.agent.service.AttemptPlan
See theAttemptPlan companion enum
@Experimental
object AttemptPlan

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

The outcome of an entry closed from the thread's state latest, without running anything.

The outcome of an entry closed from the thread's state latest, without running anything.

Attributes

def of(entry: QueueEntry, admitted: Option[Checkpoint], latest: Option[Checkpoint]): AttemptPlan

The plan for an attempt at entry, from the run-id lookup - admitted, the newest checkpoint any of the entry's recorded runs committed (Checkpointer.latestOfRuns(entry.threadId, entry.runIds)) - and the thread's latest checkpoint, both read after the attempt was recorded - and entry as RunQueue.recordAttempt answered it, whose QueueEntry.admitted says one of its runs committed even once a retraction removed that run's checkpoints. Never from an attempt count, and never from latest alone: a direct run after an attempt died would have replaced it.

The plan for an attempt at entry, from the run-id lookup - admitted, the newest checkpoint any of the entry's recorded runs committed (Checkpointer.latestOfRuns(entry.threadId, entry.runIds)) - and the thread's latest checkpoint, both read after the attempt was recorded - and entry as RunQueue.recordAttempt answered it, whose QueueEntry.admitted says one of its runs committed even once a retraction removed that run's checkpoints. Never from an attempt count, and never from latest alone: a direct run after an attempt died would have replaced it.

Attributes