Arize AX
Use Arize AX (Phoenix) with PraisonAI TypeScript
Arize AX Observability
Install
Install the Arize OpenInference package alongside praisonai so the adapter can send traces to Arize AX (Phoenix).
npm
npm install praisonai @arizeai/openinference-corepnpm
pnpm add praisonai @arizeai/openinference-coreyarn
yarn add praisonai @arizeai/openinference-coreEnvironment Variables
export ARIZE_API_KEY=...Quick Start
- Simple Usage
typescript // Requires: npm install @arizeai/openinference-core import { Agent, setObservabilityAdapter } from 'praisonai'; import { createObservabilityAdapter } from 'praisonai/observability'; const obs = await createObservabilityAdapter('arize'); setObservabilityAdapter(obs); const agent = new Agent({ name: 'TracedAgent', instructions: 'You are helpful.', llm: 'openai/gpt-4o-mini' }); await agent.chat('Hello!'); await obs.flush();If the
@arizeai/openinference-corepackage is not installed, the adapter falls back to the in-memory adapter and logs a warning. - With Configuration
Adjust observability adapter options and agent settings for production — see the sections above.