@tanstack/ai
Version:
Core TanStack AI library - Open source AI SDK
15 lines (14 loc) • 311 B
JavaScript
class BaseTextAdapter {
constructor(config = {}, model) {
this.kind = "text";
this.config = config;
this.model = model;
}
generateId() {
return `${this.name}-${Date.now()}-${Math.random().toString(36).substring(7)}`;
}
}
export {
BaseTextAdapter
};
//# sourceMappingURL=adapter.js.map