Integrating Agno with Weave by WandB
Weave by Weights & Biases (WandB) provides a powerful platform for logging and visualizing model calls. By integrating Agno with Weave, you can track and analyze your agent’s performance and behavior.Prerequisites
-
Install Weave
Ensure you have the Weave package installed:
-
Authentication
Go to WandB and copy your API key
Logging Model Calls with Weave
This example demonstrates how to use Weave to log model calls.Notes
- Environment Variables: Ensure your environment variable is correctly set for the WandB API key.
- 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.