@thrivereflections/realtime-contracts
v0.1.2
Published
Core TypeScript interfaces and types for the Thrive Realtime Voice Platform
Readme
@thrivereflections/realtime-contracts
Core TypeScript interfaces and types for the Thrive Realtime Voice Platform.
Overview
This package contains all the shared TypeScript interfaces and types used across the platform. It has no dependencies and provides stable contracts for:
- Agent configuration
- Event definitions
- Tool call contracts
- Persistence store interfaces
- Transport abstractions
- Runtime configuration
Installation
pnpm add @thrivereflections/realtime-contractsUsage
import { AgentConfig, ToolCall, PersistenceStore } from "@thrivereflections/realtime-contracts";
// Use the types in your application
const config: AgentConfig = {
// ... configuration
};API Reference
Core Types
AgentConfig- Agent behavior and capabilitiesToolCall- Tool invocation formatEvents- WebRTC data channel eventsPersistenceStore- Database storage interfaceTransport- Audio transport abstractionRuntimeConfig- Runtime configuration
Rules
- No implementation code
- Pure TypeScript interfaces and types only
- No environment variable access
- Stable API (additive changes only)
- No external dependencies
