Skip to main content

Overview

This example demonstrates how to use Weave by Weights & Biases (WandB) to log model calls from your Agno agent.

Code

Usage

1

Install Weave

2

Authenticate with WandB

  • Go to WandB and copy your API key from here.
  • Enter your API key in the terminal when prompted, or export it as an environment variable:
3

Run the Agent

Notes

  • Initialization: Call weave.init("project-name") to initialize Weave with your project name.
  • Decorators: Use @weave.op() to decorate functions you want to log with Weave.