Voltagent Python
Description
Modern, type-safe, and async-ready Python SDK for AI agent observability and tracing. Track your LLM workflows, agent interactions, and tool usage with comprehensive telemetry.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
VoltAgent Python SDK
Modern, type-safe, and async-ready Python SDK for AI agent observability and tracing. Track your LLM workflows, agent interactions, and tool usage with comprehensive telemetry.
🚀 Quick Start
pip install voltagent
Context Manager Usage (Recommended)
import asyncio
from voltagent import VoltAgentSDK
async def main():
sdk = VoltAgentSDK(
base_url="https://api.voltagent.dev",
public_key="your-public-key",
secret_key="your-secret-key",
auto_flush=True,
flush_interval=5
)
# Start a trace (conversation/session) with automatic resource management
async with sdk.trace(
agentId="customer-support-v1",
input={"query": "How to reset my password?"},
userId="user-123",
conversationId="conv-456",
tags=["support", "password-reset"]
) as trace:
# Add an agent with automatic completion
async with trace.add_agent({
"name": "Support Agent",
"input": {"task": "Handle password reset request"},
"instructions": "You are a helpful customer support agent.",
"metadata": {
"model_parameters": {"model": "gpt-4"}
}
}) as agent:
# Use a tool
tool = await agent.add_tool({
"name": "knowledge-base-search",
"input": {"query": "password reset procedure"}
})
await tool.success(
output={
"results": ["Reset via email", "Reset via SMS"],
"relevance_score": 0.89
}
)
# Complete the workflow - agent auto-completes when exiting context
await agent.success(
output={"response": "Password reset link sent!"},
usage={"prompt_tokens": 150, "completion_tokens": 85, "total_tokens": 235}
)
# Trace auto-completes when exitin
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI