cookbook/02_agents/10_human_in_the_loop/user_feedback.py
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
from agno.models.openai import OpenAIResponses
from agno.tools.user_feedback import UserFeedbackTools
agent = Agent(
model=OpenAIResponses(id="gpt-5.4"),
tools=[UserFeedbackTools()],
instructions=[
"You are a helpful travel assistant.",
"When the user asks you to plan a trip, use the ask_user tool to clarify their preferences.",
],
db=SqliteDb(db_file="tmp/user_feedback.db"),
markdown=True,
)
run_response = agent.run("Help me plan a vacation")