| Example | Description |
|---|---|
| Post Hook Output | Example demonstrating output validation using post-hooks with Agno Agent. |
| Pre Hook Input | Example demonstrating how to use a pre_hook to perform comprehensive input validation for your Agno Agent. |
| Session State Hooks | Example demonstrating how to use a pre_hook to update the session_state. |
| Stream Hook | Example demonstrating sending a notification to the user after an agent generates a response. |
| Tool Hooks | Use tool_hooks to add middleware that wraps every tool call. |
| Few Shot Learning | Use additional_input with an Agent. |
| Filter Tool Calls From History | Demonstrates max_tool_calls_from_history by showing that tool-call filtering only affects model input history while full run history remains in storage. |
| Instructions With State | Example demonstrating how to use a function as instructions for an agent. |
| Instructions | Add the current date and time to the agent’s context with add_datetime_to_context and a timezone. |
| Introduction Message | Use the introduction parameter to set an initial greeting message. |
| System Message | Customize the agent’s system message and role. |
| Custom Datetime Format | Customize the datetime format injected into the agent’s system context. |
| Message History Hooks | Access the current run’s message history inside tool pre/post hooks via run_context.messages. |
Hooks & Context
Hooks
Examples for pre-hooks, post-hooks, tool hooks, stream hooks, and agent context management.