@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.
36 lines (30 loc) • 652 B
text/typescript
import { LobeAgentConfig } from '@/types/agent';
import { MetaData } from '../meta';
import { SessionGroupId } from './sessionGroup';
export enum LobeSessionType {
Agent = 'agent',
Group = 'group',
}
/**
* Lobe Agent
*/
export interface LobeAgentSession {
config: LobeAgentConfig;
createdAt: Date;
group?: SessionGroupId;
id: string;
meta: MetaData;
model: string;
pinned?: boolean;
tags?: string[];
type: LobeSessionType.Agent;
updatedAt: Date;
}
export interface LobeAgentSettings {
/**
* 语言模型角色设定
*/
config: LobeAgentConfig;
meta: MetaData;
}
export type LobeSessions = LobeAgentSession[];