Mead.Router.AskUser (mead v0.1.1)

Copy Markdown View Source

The built-in ask_user tool: lets the model put a short multiple-choice question to the person and use the answer.

It is offered only to a turn that has an interaction and at least one other tool (see Mead.Router), is answered by the router itself and never reaches Mead.MCP.Hub. Its name has no __, which is what an MCP tool always has in the model's view (server__tool), so a server cannot shadow it. The policy never gates it: it changes nothing outside the conversation.

Summary

Functions

Checks the arguments the model gave; extra fields are ignored.

Functions

name()

@spec name() :: String.t()

tool()

@spec tool() :: %{name: String.t(), description: String.t(), input_schema: map()}

validate(arg1)

@spec validate(term()) ::
  {:ok, %{prompt: String.t(), options: [%{id: String.t(), label: String.t()}]}}
  | {:error, String.t()}

Checks the arguments the model gave; extra fields are ignored.