A LangChain chat model instance
Configuration options
A Reminix Agent that wraps the chat model
import { ChatOpenAI } from '@langchain/openai';
import { fromChatModel } from '@reminix/adapters/langchain';
import { serve } from '@reminix/runtime';
const llm = new ChatOpenAI({ model: 'gpt-4o' });
const agent = fromChatModel(llm, {
name: 'gpt4-chat',
system: 'You are a helpful assistant.',
});
serve(agent);
Create a Reminix Agent from a LangChain chat model.