Learn how to control the flow of an agent’s execution in Agno. This is also called “Human in the Loop”.
continue_run
method.
For example:
continue_run
method continues with the state of the agent at the time of the pause. You can also pass the run_response
of a specific run to the continue_run
method, or the run_id
.
send_email
tool from the user.
RunResponse
object has a list of tools and in the case of requires_user_input
, the tools that require input will have user_input_schema
populated.
This is a list of UserInputField
objects.
run_id
and a list of updated_tools
to the continue_run
or acontinue_run
method.
See an example here.