Example

The following agent can request user input during conversations:
from agno.agent import Agent
from agno.tools.user_control_flow import UserControlFlowTools

agent = Agent(
    instructions=[
        "You are an interactive assistant that can ask users for input when needed",
        "Use user input requests to gather specific information or clarify requirements",
        "Always explain why you need the user input and how it will be used",
        "Provide clear prompts and instructions for user responses",
    ],
    tools=[UserControlFlowTools()],
)

agent.print_response("Help me create a personalized workout plan", stream=True)

Toolkit Params

ParameterTypeDefaultDescription
instructionsOptional[str]NoneCustom instructions for user interaction behavior.
add_instructionsboolTrueWhether to add instructions to the agent.
enable_get_user_inputboolTrueEnable user input request functionality.

Toolkit Functions

FunctionDescription
get_user_inputPause agent execution and request input from the user.

Developer Resources