Asking

org.llm4s.agent.graph.tool.AgentTool.Asking
abstract class Asking[A, Q, Ans](base: AgentToolSpec[A])(implicit evidence$1: ReadWriter[Q], evidence$2: ReadWriter[Ans]) extends AgentTool[A]

A tool that asks questions of type Q and takes answers of type Ans. Its spec is base with that question declared, so the loop encodes Ask(q) and decodes the answer with these codecs, then calls resume.

Attributes

Graph
Supertypes
trait AgentTool[A]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def resume(args: A, question: Q, answer: Ans, context: ToolContext): ToolOutcome

Continues the call args after question was answered with answer.

Continues the call args after question was answered with answer.

Attributes

Concrete methods

final protected def ask(question: Q): ToolOutcome

Asks question, of the declared type; the answer arrives through resume.

Asks question, of the declared type; the answer arrives through resume.

Attributes

Inherited methods

def writes: Set[StateKey[_, _]]

The state keys this tool's Success updates may touch.

The state keys this tool's Success updates may touch.

Attributes

Inherited from:
AgentTool

Inherited and Abstract methods

def execute(args: A, context: ToolContext): ToolOutcome

Attributes

Inherited from:
AgentTool

Concrete fields

final val spec: AgentToolSpec[A]