User input requests
Set theonUserInputRequest handler so your agent can ask users questions through the ask_user tool.
UserInputRequest
A user input request from the agent.| Property | Type | Description |
|---|---|---|
question | string | Question to ask the user |
choices | ?array | Options for multiple-choice input (optional) |
allowFreeform | ?bool | Whether freeform input is allowed (default: true) |
UserInputResponse
A response to a user input request.| Property | Type | Description |
|---|---|---|
answer | string | User answer |
wasFreeform | bool | Whether the answer was freeform (true when not from choices) |
Practical usage
Use this in interactive commands:For the latest updates, see the GitHub repository.