Class: Xeno::AskQuestion
- Defined in:
- lib/xeno/ask_question.rb
Overview
The one framework tool in v0.1. It has no executable body: the model calling it parks the turn with an input.requested event, 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, which belongs to the app's agent/tools/).
Instance Attribute Summary
Attributes inherited from Tool
Instance Method Summary collapse
Methods inherited from Tool
approval, #name, #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 |