Skip to main content
ExampleDescription
Post Hook OutputExample demonstrating output validation using post-hooks with Agno Agent.
Pre Hook InputExample demonstrating how to use a pre_hook to perform comprehensive input validation for your Agno Agent.
Session State HooksExample demonstrating how to use a pre_hook to update the session_state.
Stream HookExample demonstrating sending a notification to the user after an agent generates a response.
Tool HooksUse tool_hooks to add middleware that wraps every tool call.
Few Shot LearningThis example demonstrates how to use additional_input with an Agent.
Filter Tool Calls From HistoryDemonstrates max_tool_calls_from_history by showing that tool-call filtering only.
Instructions With StateExample demonstrating how to use a function as instructions for an agent.
InstructionsManage agent instructions and context.
Introduction MessageUse the introduction parameter to set an initial greeting message.
System MessageCustomize the agent’s system message and role.