Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Integrate Portkey gateway and observability with PraisonAI agents
Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
pip install portkey-ai
export PORTKEY_API_KEY=xxx
from praisonai_tools.observability import obs
from praisonaiagents import Agent
obs.init(provider="portkey")
# Everything is auto-traced!
agent = Agent(name="Assistant", instructions="You are helpful.", model="gpt-4o-mini")
response = agent.chat("Hello!")
from praisonai_tools.observability import obs
obs.init(provider="portkey", auto_instrument=False)
with obs.trace("workflow"):
# Your agent code
pass