Integrate Arize Phoenix observability with PraisonAI agents
pip install arize-phoenix openinference-instrumentation
export PHOENIX_API_KEY=xxx
export PHOENIX_COLLECTOR_ENDPOINT=https://app.phoenix.arize.com/
from praisonai_tools.observability import obs
from praisonaiagents import Agent
obs.init(provider="arize_phoenix")
# Everything is auto-traced - no wrappers needed!
agent = Agent(
name="Assistant",
instructions="You are a helpful assistant.",
model="gpt-4o-mini",
)
response = agent.chat("Hello!")
print(response)
from praisonai_tools.observability import obs
obs.init(provider="arize_phoenix", auto_instrument=False)
with obs.trace("workflow"):
# Your agent code
pass