Handoff

org.llm4s.agent.Handoff
See theHandoff companion class
object Handoff

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Handoff.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

def of(id: String, target: AgentBuilder, reason: Option[String], preserveContext: Boolean): Result[Handoff]

Validated construction: Left(ValidationError) unless id matches [a-zA-Z0-9_-]{1,52}. preserveContext = false sends the target only the user's last question and the transfer.

Validated construction: Left(ValidationError) unless id matches [a-zA-Z0-9_-]{1,52}. preserveContext = false sends the target only the user's last question and the transfer.

Attributes

def to(id: String, target: AgentBuilder): Handoff

A handoff with default settings; throws IllegalArgumentException for an invalid id.

A handoff with default settings; throws IllegalArgumentException for an invalid id.

Attributes

def to(id: String, target: AgentBuilder, reason: String, preserveContext: Boolean): Handoff

A handoff with a reason; throws IllegalArgumentException for an invalid id. With preserveContext = false the target is sent only the user's last question and the transfer.

A handoff with a reason; throws IllegalArgumentException for an invalid id. With preserveContext = false the target is sent only the user's last question and the transfer.

Attributes

def toId(id: String, reason: Option[String], preserveContext: Boolean): Handoff

A handoff to the agent with id id, defined by another builder of the family - the way back of a cycle. Throws IllegalArgumentException for an invalid id; build() refuses an id no builder of the family defines.

A handoff to the agent with id id, defined by another builder of the family - the way back of a cycle. Throws IllegalArgumentException for an invalid id; build() refuses an id no builder of the family defines.

Attributes

def toId(id: String, reason: String): Handoff

A handoff with a reason to the agent with id id, defined by another builder of the family.

A handoff with a reason to the agent with id id, defined by another builder of the family.

Attributes