Class: Xeno::AskQuestion

Inherits:
Tool
  • Object
show all
Defined in:
lib/xeno/ask_question.rb

Overview

The built-in question tool. It has no executable body: the model calling it parks the turn, and a human's answer is injected as the tool result on resume — the same mechanics as approvals. Registered on every chat, outside the Xeno::Tools namespace that belongs to the app.

Instance Attribute Summary

Attributes inherited from Tool

#session

Instance Method Summary collapse

Methods inherited from Tool

approval, approval_declared?, #state, tool_name

Instance Method Details

#execute(question:, choices: nil) ⇒ Object



14
15
16
# File 'lib/xeno/ask_question.rb', line 14

def execute(question:, choices: nil)
  raise "ask_question is never executed — the runtime parks the turn instead"
end