TrueFoundry
Integrate TrueFoundry observability with PraisonAI agents
TrueFoundry Integration
TrueFoundry provides LLM deployment and observability.
Setup
export TRUEFOUNDRY_API_KEY=xxxUsage
Auto-Instrumentation (Recommended)
from praisonai_tools.observability import obs
from praisonaiagents import Agent
obs.init(provider="truefoundry")
# Everything is auto-traced!
agent = Agent(name="Assistant", instructions="You are helpful.", model="gpt-4o-mini")
response = agent.chat("Hello!")Explicit Tracing
from praisonai_tools.observability import obs
obs.init(provider="truefoundry", auto_instrument=False)
with obs.trace("workflow"):
# Your agent code
pass