Documentation Index
Fetch the complete documentation index at: https://docs.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
UserFeedbackTools exposes a single ask_user tool. The agent presents structured questions with predefined options (single or multi-select), the run pauses, and execution resumes once the user provides their selections. This is a human-in-the-loop pattern for clarifying intent mid-run.
Example
cookbook/02_agents/10_human_in_the_loop/user_feedback.py
Resolving the Pause
When the agent callsask_user, the run pauses with a user_feedback_schema. Collect the user’s selections and continue the run:
Question Schema
ask_user accepts a list of AskUserQuestion objects:
| Field | Type | Description |
|---|---|---|
question | str | The question. Must end with a question mark. |
header | str | Short label (max 12 chars), e.g. "Destination". |
options | List[AskUserOption] | 2-4 options to choose from. |
multi_select | bool | If True, the user can select multiple options. |
AskUserOption has a label (1-5 words) and an optional description.
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
instructions | Optional[str] | defaults | Override the default LLM instructions. |
add_instructions | bool | True | Add the instructions to the agent’s system message. |