Guide
A LlamaIndex query engine or agent retrieves, reasons and calls the model. AgentPing registers as a handler so one record lands per query with the cost, status and answer quality behind it.
Install the SDK and point it at your LlamaIndex agent. One record lands per run with the cost, status, latency and output behind it.
pip install agentping
import agentping
from agentping import AgentPingLlamaIndexHandler
from llama_index.core import Settings
agentping.init(api_key="apk_…", agent="docs-rag")
Settings.callback_manager.add_handler(AgentPingLlamaIndexHandler())
# Query as usual; retrieval and model calls are captured per query.
response = query_engine.query("…")
The handler captures retrieval and model calls under one run per query, so cost and quality are tracked together. Full reference is in the docs.
Add the SDK, send one run, and watch cost, status and quality land in the dashboard.