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
- AgentConfig
- AgentIntegrationConfig
- AgentLLMResponse
- AgentState
- APISetup
- BasicCredential
- BasicCredentialSetup
- BearerCredential
- BearerCredentialSetup
- CallToolCommand
- CommandHistoryEntry
- CustomCredential
- CustomCredentialSetup
- DailySchedule
- FinishCommand
- IntegrationDefinition
- IntervalSchedule
- LLMProviderConfig
- LLMResponse
- MemoryConfig
- MemoryStore
- ModelConfig
- OAuth2Credential
- OAuth2CredentialSetup
- OpenMoltConfig
- PlanStep
- PlanSubStep
- RequestHumanInputCommand
- ToolContext
- ToolDefinition
- UpdateMemoryCommand
- UpdatePlanCommand
- WaitCommand
Type Aliases
Variables
- airtableDefinition
- browserUseDefinition
- discordDefinition
- dropboxDefinition
- etsyDefinition
- falDefinition
- fileSystemDefinition
- geminiMediaModelsDefinition
- githubDefinition
- gmailDefinition
- googleAdsDefinition
- googleCalendarDefinition
- googleDriveDefinition
- googleSheetsDefinition
- httpRequestDefinition
- instagramDefinition
- metaAdsDefinition
- microsoftOutlookDefinition
- notionDefinition
- openAiMediaModelsDefinition
- s3Definition
- shopifyDefinition
- slackDefinition
- stripeDefinition
- telegramDefinition
- tiktokDefinition
- twilioDefinition
- xDefinition
- whatsappDefinition
- youtubeDefinition
Functions
References
default
Renames and re-exports OpenMolt