Integrating Agno with Weave by WandB
Weave 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 Dependencies
- Create a WandB Account
- Sign up for an account at WandB.
- Obtain your API key from WandB Dashboard.
- Set Environment Variables
Sending Traces to Weave
-
Example: Using
weave.op
decorator
@weave.op
decorator over any function you wish to automatically trace. This works by creating wrappers around the functions.
-
Example: Using OpenTelemetry
weave
Python SDK as a dependency.
First, install the required OpenTelemetry dependencies:
Notes
- Environment Variables: Ensure your environment variables are correctly set for the WandB API key.
- Project Configuration: Replace
<your-entity>/<your-project>
with your actual WandB entity and project name for OpenTelemetry setup. - Entity Name: You can find your entity name by visiting your WandB dashboard and checking the Teams field in the left sidebar.
- Method Selection: Use
weave.op
decorator for simpler setup, or OpenTelemetry for richer logging and better dashboard reporting.