TaskOutcome

org.llm4s.agent.delegation.TaskOutcome
@Experimental
enum TaskOutcome[+O]

How a delegated task ended (design 4.44): only typed data crosses from the child to the parent, never the child's messages.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class NotStarted[+O](agent: AgentId, reason: TaskRefusal)

The task was refused before any child existed, so there is no child thread and no ChildRef: reason says why (an exhausted step or token budget, design 4.45). A replay decides the same from the same snapshot.

The task was refused before any child existed, so there is no child thread and no ChildRef: reason says why (an exhausted step or token budget, design 4.45). A replay decides the same from the same snapshot.

Attributes

final case class Refused[+O](child: ChildRef, reason: TaskRefusal, usage: UsageSummary)

The child ended without a report it may give: why, and the child thread's usage.

The child ended without a report it may give: why, and the child thread's usage.

Attributes

final case class Reported[+O](report: O, child: ChildRef, usage: UsageSummary)

The child answered: report is its answer, decoded as O; usage is the child thread's.

The child answered: report is its answer, decoded as O; usage is the child thread's.

Attributes

final case class Suspended[+O](child: ChildRef, status: Suspended)

The child is waiting for approvals or answers, status. Through a task call, the parent suspends too, listing the child's interrupts in its own AgentStatus.Suspended.delegated, and resuming the parent resumes the child (design 4.46).

The child is waiting for approvals or answers, status. Through a task call, the parent suspends too, listing the child's interrupts in its own AgentStatus.Suspended.delegated, and resuming the parent resumes the child (design 4.46).

Attributes