Observed since 20 Oct, 22:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AgentMetrics observability integration for AutoGen agents
AgentMetrics integration for AutoGen. Wrap team.run_stream() with one async context manager and every run reports back to your dashboard showing latency, tool calls, and errors. Token counts are not available from AutoGen's streaming events and are not tracked.
pip install agentmetrics-autogen
from agentmetrics_autogen import AgentMetricsRunStream
tracker = AgentMetricsRunStream(
agent_id="my-autogen-team",
base_url="http://localhost:8099",
)
async with tracker.run(team, task="Analyze this dataset") as stream:
async for event in stream:
pass # handle events as normal
tracker.flush()
AgentMetricsRunStream(agent_id, base_url)| Parameter | Default | Description |
|---|---|---|
agent_id | "autogen-agent" | Label shown in the dashboard |
base_url | "http://localhost:8099" | AgentMetrics server address |
.run(team, **kwargs)Returns an async context manager. Calls team.run_stream(**kwargs) internally. Yields a tracking iterator that intercepts ToolCallRequestEvent, ToolCallExecutionEvent, and TaskResult events to collect run metrics.
Emits a run summary to /v1/events on context exit (success or exception).
.flush(timeout=10.0)Blocks until all in-flight HTTP requests complete.
Each .run() call emits one event to /v1/events on completion or exception:
| Field | Description |
|---|---|
status | success or failed |
duration_ms | Wall-clock run duration |
tool_calls | Number of ToolCallRequestEvent events |
tool_errors | Number of tool results with is_error=True |
tool_names | Set of tool names from request events |
error | Error message if TaskResult.stop_reason contains "error" |
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 20 Jun 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:43 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0cc0b684fd21a63c96264c74ead5fa0dc6345e2bd2d04e6b83d4cc252edbb089