@scuticode/shop-sdk
Version:
ScutiCode shop sdk
31 lines (30 loc) • 716 B
TypeScript
import { CatalogItem } from "./CatalogModel";
export interface ShopSearchRequest {
userId: string;
userPrompt: string;
}
export interface CatalogChatResponse {
isSuccess: boolean;
content: string;
searchInsights: SearchInsightsProperties;
}
export interface SearchInsightsProperties {
name: string;
description: string;
actionableFeedback: string[];
translation: string;
}
export interface ChatMessage {
role: string;
type: ChatMessageType;
text?: string;
items?: CatalogItem[];
}
export declare enum ChatMessageType {
Text = 0,
Items = 1
}
export declare class Constants {
static readonly User = "user";
static readonly Assistant = "assistant";
}