Skip to main content

README

openmolt


openmolt

Example

import OpenMolt from 'openmolt';
import { z } from 'zod';

const om = new OpenMolt({
llmProviders: { openai: { apiKey: 'sk-...' } },
maxSteps: 15,
});

const agent = om.createAgent({
name: 'Researcher',
model: 'openai:gpt-4o',
instructions: 'You are a helpful research assistant.',
outputSchema: z.object({ summary: z.string() }),
});

const result = await agent.run('Summarise the key benefits of TypeScript.');
console.log(result);

Classes

Interfaces

Type Aliases

Variables

Functions

References

default

Renames and re-exports OpenMolt