Overview
@reminix/openai provides a simple wrapper for the OpenAI API. This is a model-only adapter for basic chat completions without tool calling.
For agents with tool calling, use LangChain, LangGraph, or Vercel AI SDK instead.
Installation
@reminix/runtime as a dependency.
Quick Start
Wrap an OpenAI client and serve it:Configuration
Multiple Agents
For multi-agent projects, usewrapAgent + serve instead of serveAgent:
Usage
With Prompt
Single request/response with a prompt:With Messages
For conversations with message history:Streaming
For real-time streaming responses:When to Use This Adapter
Use@reminix/openai when:
- You need simple chat completions
- No tool calling required
- Direct model access is sufficient
- You need tool calling / function calling
- You need agents with memory
- You need complex workflows