@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
73 lines (65 loc) • 1.67 kB
text/typescript
import { FewShots } from '@/types/llm';
import { MetaData } from '@/types/meta';
import { LobeAgentSettings } from '@/types/session';
export enum AssistantCategory {
Academic = 'academic',
All = 'all',
Career = 'career',
CopyWriting = 'copywriting',
Design = 'design',
Education = 'education',
Emotions = 'emotions',
Entertainment = 'entertainment',
Games = 'games',
General = 'general',
Life = 'life',
Marketing = 'marketing',
Office = 'office',
Programming = 'programming',
Translation = 'translation',
}
export enum AssistantSorts {
CreatedAt = 'createdAt',
Identifier = 'identifier',
KnowledgeCount = 'knowledgeCount',
PluginCount = 'pluginCount',
Title = 'title',
TokenUsage = 'tokenUsage',
}
export enum AssistantNavKey {
Capabilities = 'capabilities',
Overview = 'overview',
Related = 'related',
SystemRole = 'systemRole',
}
export interface DiscoverAssistantItem extends Omit<LobeAgentSettings, 'meta'>, MetaData {
author: string;
category?: AssistantCategory;
createdAt: string;
homepage: string;
identifier: string;
knowledgeCount: number;
pluginCount: number;
tokenUsage: number;
}
export interface AssistantQueryParams {
category?: string;
locale?: string;
order?: 'asc' | 'desc';
page?: number;
pageSize?: number;
q?: string;
sort?: AssistantSorts;
}
export interface AssistantListResponse {
currentPage: number;
items: DiscoverAssistantItem[];
pageSize: number;
totalCount: number;
totalPages: number;
}
export interface DiscoverAssistantDetail extends DiscoverAssistantItem {
examples?: FewShots;
related: DiscoverAssistantItem[];
summary?: string;
}