SwarmZero Docs
Main WebsitePricingGitHubDiscordX
  • GETTING STARTED
    • Welcome
    • Developing on SwarmZero
    • Quickstart
    • Key Concepts
      • AI
      • ML
      • LLM
      • AI Agents
      • Swarms
    • Contributing to SwarmZero
  • SDK
    • Agent Kit
    • Agent API Schema
    • Observability
      • Langtrace
      • OpenLIT
      • AgentOps
  • EXAMPLES
    • AI Agents
      • Build a Dune Agent with SwarmZero.ai
      • Build a News Agent with SwarmZero.ai using the GDELT API
      • Build a Uniswap Docs Retrieval Agent with SwarmZero.ai
      • Build an AAVE AI Agent to Lend and Borrow Crypto
      • Build & Monitor a Web Search Agent
      • Build a Multi-Chain Crypto Trading Telegram Bot with SwarmZero, Bitquery and DEXRabbit
    • Swarms
      • AI Researcher Swarm
      • Build a Web3 dApp with a Swarm of AI Agents
      • Livepeer Youtube Video Generator Swarm
    • Tools
      • Tools for Building Agents with Livepeer
      • Tools for Building Agents with Dune
      • YouTube Video Editor & Upload Tools
      • File Operations Tools
Powered by GitBook
LogoLogo

Quick Links

  • Main Website
  • Pricing
  • GitHub
  • Discord

© 2025 SwarmZero Technology Solutions Inc. All rights reserved.

On this page
  • Install AgentOps
  • Usage
  • View Agent/Swarm Metrics

Was this helpful?

  1. SDK
  2. Observability

AgentOps

Monitoring Agents and Swarms with AgentOps

PreviousOpenLITNextAI Agents

Last updated 5 months ago

Was this helpful?

is Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more.

Install AgentOps

pip install agentops
poetry add agentops

Usage

In your main code

import os

from dotenv import load_dotenv
load_dotenv()

import agentops
agentops.init(<INSERT YOUR API KEY HERE>)

from swarmzero import Agent, Swarm
# ...

In your .env file

AGENTOPS_API_KEY=<YOUR API KEY>\

Track Individual Agents in Swarm

import os

from dotenv import load_dotenv

import agentops
from agentops import track_agent
from swarmzero import Agent, Swarm

load_dotenv()
agentops.init(<INSERT YOUR API KEY HERE>)

@track_agent(name="qa")
class QaAgent(Agent):
...

@track_agent(name="engineer")
class EngineerAgent(Agent):
...

View Agent/Swarm Metrics

Open to view your AgentOps dashboard

An example can be found .

https://app.agentops.ai/drilldown
here
AgentOps