Skip to main content

Integrating Agno with LangSmith

LangSmith offers a comprehensive platform for tracing and monitoring AI model calls. By integrating Agno with LangSmith, you can utilize OpenInference to send traces and gain insights into your agent’s performance.

Prerequisites

  1. Create a LangSmith Account
    • Sign up for an account at LangSmith.
    • Obtain your API key from the LangSmith dashboard.
  2. Set Environment Variables Configure your environment with the LangSmith API key and other necessary settings:
  3. Install Dependencies Ensure you have the necessary packages installed:

Sending Traces to LangSmith

This example demonstrates how to instrument your Agno agent with OpenInference and send traces to LangSmith.

Notes

  • Environment Variables: Ensure your environment variables are correctly set for the API key, endpoint, and project name.
  • Data Regions: Choose the appropriate LANGSMITH_ENDPOINT based on your data region.
By following these steps, you can effectively integrate Agno with LangSmith, enabling comprehensive observability and monitoring of your AI agents.