ToolQuestionRequest

org.llm4s.agent.graph.toolloop.ToolQuestionRequest
final case class ToolQuestionRequest(assistantMessageId: String, call: ToolCall, question: Value, approved: Boolean)

The question a tool's Ask interrupt carries: the call that asked, from one assistant message, the question encoded with the tool's declared question codec, and whether the call was approved before it asked - resume sees the same ToolContext.approved. Find it with ToolLoop.questions, read its question as the tool's type with ToolLoop.question, and answer it with ToolLoop.answer.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product