Reminix TypeScript SDK - v0.7.1
    Preparing search index...

    Function fromOpenAI

    @reminix/adapters

    Framework adapters for integrating popular AI agent frameworks with the Reminix runtime.

    // Import specific adapters via subpath exports (recommended for tree-shaking)
    import { fromOpenAI } from '@reminix/adapters/openai';
    import { fromAnthropic } from '@reminix/adapters/anthropic';

    // Or import all adapters from the main entry
    import { fromOpenAI, fromAnthropic } from '@reminix/adapters';
    • Create a Reminix Agent from an OpenAI client.

      Parameters

      • client: OpenAIClient

        An OpenAI client instance

      • options: FromOpenAIOptions

        Configuration options

      Returns Agent

      A Reminix Agent that wraps the OpenAI client

      import OpenAI from 'openai';
      import { fromOpenAI } from '@reminix/adapters/openai';
      import { serve } from '@reminix/runtime';

      const client = new OpenAI();
      const agent = fromOpenAI(client, {
      name: 'gpt4-agent',
      model: 'gpt-4o',
      system: 'You are a helpful assistant.',
      });

      serve(agent);