UNPKG

@tanstack/ai

Version:

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

31 lines (30 loc) 726 B
class BaseVideoAdapter { kind = "video"; model; config; constructor(config = {}, model) { this.config = config; this.model = model; } /** * Default implementation returns `{ kind: 'none' }`. Adapters that have * declared their per-model duration map should override this. */ availableDurations() { return { kind: "none" }; } /** * Default implementation returns `undefined`. Adapters that have declared * their per-model duration map should override. */ snapDuration(_seconds) { return void 0; } generateId() { return `${this.name}-${Date.now()}-${Math.random().toString(36).substring(7)}`; } } export { BaseVideoAdapter }; //# sourceMappingURL=adapter.js.map