Arize AX

Use Arize AX (Phoenix) with PraisonAI TypeScript

Diagram

Input

Agent

Output

Arize AX Observability

Install

Install the Arize OpenInference package alongside praisonai so the adapter can send traces to Arize AX (Phoenix).

npm

bash
npm install praisonai @arizeai/openinference-core

pnpm

bash
pnpm add praisonai @arizeai/openinference-core

yarn

bash
yarn add praisonai @arizeai/openinference-core

Environment Variables

bash
export ARIZE_API_KEY=...

Quick Start

  1. 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-core package is not installed, the adapter falls back to the in-memory adapter and logs a warning.

  2. With Configuration

    Adjust observability adapter options and agent settings for production — see the sections above.

Related