AgentSea

Package

@lov3kaizen/agentsea-types

Shared TypeScript type definitions for the AgentSea ADK.

v1.2.1On npm

01Install

Install from npm into your project.

BASH
pnpm add @lov3kaizen/agentsea-types

02Example

TS
import type { Message, Tool, LLMProvider, Tenant } from '@lov3kaizen/agentsea-types';

const greeting: Message = { role: 'user', content: 'Hello' };

03Key API

Message
A chat message: role ('system', 'user', 'assistant' or 'tool'), content, optional name and toolCallId.
Tool
A tool with name, description, zod parameters and an execute function.
LLMProvider
Provider contract: generateResponse, optional streamResponse, parseToolCalls.
Tenant and TenantContext
Multi-tenant types: Tenant, TenantStatus, TenantSettings, TenantContext, TenantApiKey, TenantQuota.
STTProvider and TTSProvider
Speech-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.