01Install
Install from npm into your project.
BASH
pnpm add @lov3kaizen/agentsea-types02Example
TS
import type { Message, Tool, LLMProvider, Tenant } from '@lov3kaizen/agentsea-types';
const greeting: Message = { role: 'user', content: 'Hello' };03Key API
MessageA chat message: role ('system', 'user', 'assistant' or 'tool'), content, optional name and toolCallId.
ToolA tool with name, description, zod parameters and an execute function.
LLMProviderProvider contract: generateResponse, optional streamResponse, parseToolCalls.
Tenant and TenantContextMulti-tenant types: Tenant, TenantStatus, TenantSettings, TenantContext, TenantApiKey, TenantQuota.
STTProvider and TTSProviderSpeech-to-text and text-to-speech provider types, with STTConfig, TTSConfig and VoiceAgentConfig.
04Caveats
- The package has no README. Its exports are listed from its entry file.
- No install instructions are documented. The install command follows the package name.
- Voice types use Buffer and NodeJS.ReadableStream, so Node type definitions are needed.
- ProviderConfig.thinking and effort are ignored by providers that do not support them.