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() # DatadogImport
Classes
Span
Represents a span in a trace.
Trace
Represents a complete trace.
ObservabilityAdapter
Protocol for observability adapters.

