obs • AI Agent SDK
Observability interface for PraisonAI Agents.
obs
AI Agent
Observability interface for PraisonAI Agents.
This module provides the protocol and types for observability/tracing. Implementations are provided by the wrapper layer (praisonai_tools.observability).
Usage (simplest – recommended): from praisonaiagents import Agent, obs
obs.auto() # Auto-detect from env vars; instruments the LLM client globally
agent = Agent(name=”Assistant”) agent.chat(“Hello!”) # Auto-traces to configured provider
Alternative (explicit provider – call before creating the agent): obs.langfuse() # Langfuse obs.langsmith() # LangSmith obs.agentops() # AgentOps obs.arize() # Arize Phoenix obs.datadog() # Datadog
Import
from praisonaiagents import obs