UNPKG

@tanstack/ai

Version:

Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.

18 lines (17 loc) 344 B
class BaseTextAdapter { kind = "text"; model; requires = void 0; config; constructor(config = {}, model) { this.config = config; this.model = model; } generateId() { return `${this.name}-${Date.now()}-${Math.random().toString(36).substring(7)}`; } } export { BaseTextAdapter }; //# sourceMappingURL=adapter.js.map