UNPKG

@coursebuilder/core

Version:

Core package for Course Builder

49 lines (46 loc) 1.93 kB
import { CoreMessage } from 'ai'; import { L as LlmProviderConfig } from '../../adapters-BjQ3VSch.js'; import '@auth/core/adapters'; import '../../schemas/coupon-schema.js'; import 'zod'; import '../../schemas/merchant-coupon-schema.js'; import '../../schemas/merchant-customer-schema.js'; import '../../schemas/merchant-product-schema.js'; import '../../schemas/price-schema.js'; import '../../schemas/product-schema.js'; import '../../schemas/purchase-schema.js'; import '../../schemas/purchase-user-transfer-schema.js'; import '../../schemas/resource-progress-schema.js'; import '../../schemas/user-schema.js'; import '../../schemas/video-resource.js'; import '../../schemas/upgradable-product-schema.js'; import '../../schemas/merchant-charge-schema.js'; import '../../schemas/merchant-price-schema.js'; import '../../schemas/content-resource-schema.js'; import '../../schemas/merchant-account-schema.js'; import '../../schemas/merchant-session.js'; import '../../schemas/merchant-subscription.js'; import '../../schemas/organization-member.js'; import '../../schemas/organization-schema.js'; import '../../schemas/subscription.js'; import '@auth/core'; import '@auth/core/providers/nodemailer'; import 'cookie'; import 'inngest'; import 'stripe'; import '../../lib/utils/logger.js'; import '@auth/core/providers'; import '../../schemas/subscriber-schema.js'; import '../../providers/partykit.js'; import '../../providers/slack.js'; import '../../schemas/purchase-info.js'; import '../../schemas/subscription-info.js'; type ChatCompletionRequestMessage = CoreMessage; type PromptStepOptions = { requestId: string; promptMessages: CoreMessage[]; model: string; provider: LlmProviderConfig; }; declare function streamingChatPromptExecutor({ requestId, promptMessages, model, provider, }: PromptStepOptions): Promise<CoreMessage[]>; export { type ChatCompletionRequestMessage, streamingChatPromptExecutor };