main
 1# frozen_string_literal: true
 2
 3Elelem::Plugins.register(:interview) do |agent|
 4  agent.toolbox.add("interview",
 5    description: "Ask the user a question and wait for their response",
 6    params: {
 7      question: { type: "string", description: "The question to ask the user" },
 8    },
 9    required: ["question"]
10  ) do |args|
11    agent.terminal.say(agent.terminal.markdown(args["question"]))
12    { answer: agent.terminal.ask("> ") }
13  end
14end