Skip to main content
ExampleDescription
01 Create Cultural KnowledgeCreate cultural knowledge to use with your Agents.
02 Use Cultural Knowledge In AgentUse cultural knowledge with your Agents.
03 Automatic Cultural ManagementAutomatically update cultural knowledge based on Agent interactions.
04 Manually Add CultureManually add cultural knowledge to your Agents.
Advanced CompressionThis example shows how to set a context token based limit for tool call compression.
Agent SerializationSerialize and deserialize agents using to_dict/from_dict and save/load with a database.
Background ExecutionBackground execution allows you to start an agent run that returns immediately.
Background Execution StructuredCombines background execution (non-blocking, async) with Pydantic output_schema.
Basic Agent EventsStream agent events including run lifecycle, tool calls, and content output.
Cache Model ResponseExample showing how to cache model responses to avoid redundant API calls.
Cancel RunExample demonstrating how to cancel a running agent execution.
Compression EventsTest script to verify compression events are working correctly.
Concurrent ExecutionConcurrent Execution.
Custom Cancellation ManagerShows how to extend BaseRunCancellationManager to implement your own.
Custom LoggingExample showing how to use a custom logger with Agno.
DebugYou can set the debug mode on the agent for all runs to have more verbose output.
Multi-Model MetricsTrack per-model token usage with memory model breakdown in metrics.details.
Culture MetricsTrack culture model token usage under the culture_model detail key.
Session MetricsAccumulate metrics across multiple runs within a session using SessionMetrics.
Session Summary MetricsTrack session summary model token usage under the session_summary_model detail key.
Streaming MetricsCapture metrics from streaming responses using yield_run_output=True.
Tool Call MetricsTrack tool execution timing with ToolCallMetrics on each ToolExecution.
Background Execution MetricsTrack metrics for background (async) agent runs with full token and model details.
Reasoning Agent EventsStream agent events including run lifecycle, tool calls, and content output.
RetriesExample demonstrating how to set up retries with an Agent.
Tool Call CompressionCompress tool call history to reduce context size.
Learning MachineCreate agents that learn and improve from interactions over time.
Memory ManagerUse a MemoryManager to give agents persistent memory across sessions.
Basic ReasoningAdd chain-of-thought reasoning capabilities to agents.
Reasoning With ModelUse a separate reasoning model with configurable step limits.
Basic SkillsBasic Skills Example.
Check StyleCheck Python code for style issues.
Commit MessageValidate or generate conventional commit messages.