Working with Agno

Unlock full observability for CrewAI agents and tasks—capture LLM calls, task execution, and agent interactions with LangDB’s init().

LangDB’s Agno integration provides end-to-end tracing for your Agno agent pipelines.

Installation

Install the LangDB client with Agno feature flag:

Quick Start

Export Environment Variables

Set your LangDB credentials:

Initialize Tracing

Import and run the initialize before configuring your Agno Code:

Configure your Agno code

All Agno interactions from invocation through tool calls to final output are traced with LangDB.

Complete Agno Example

Here is a full example based on Web Search Agno Multi Agent Team.

Example code

Check out the full sample on GitHub: https://github.com/langdb/langdb-samples/tree/main/examples/agno/agno-basicarrow-up-right

Setup Environment

Export Environment Variables

main.py

Running your Agent

Navigate to the parent directory of your agent project and use one of the following commands:

Traces on LangDB

When you run queries against your agent, LangDB automatically captures detailed traces of all agent interactions:

Multi Team Agno Trace

Next Steps: Advanced Agno Integration

This guide covered the basics of integrating LangDB with Agno using a Web Search agent example. For more complex scenarios and advanced use cases, check out our comprehensive resources in Guides Section.

Last updated

Was this helpful?