mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-28 13:27:33 +08:00
add webui
This commit is contained in:
32
webui/src/types/index.ts
Normal file
32
webui/src/types/index.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
export type ChatItem = { role: 'user' | 'assistant'; text: string };
|
||||
export type Session = { key: string; title: string };
|
||||
export type CronJob = {
|
||||
id: string;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
kind?: string;
|
||||
everyMs?: number;
|
||||
expr?: string;
|
||||
message?: string;
|
||||
deliver?: boolean;
|
||||
channel?: string;
|
||||
to?: string;
|
||||
};
|
||||
export type Cfg = Record<string, any>;
|
||||
export type View = 'dashboard' | 'chat' | 'config' | 'cron' | 'nodes';
|
||||
export type Lang = 'en' | 'zh';
|
||||
|
||||
export type LogEntry = {
|
||||
time: string;
|
||||
level: string;
|
||||
msg: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
|
||||
export type Skill = {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
tools: string[];
|
||||
system_prompt?: string;
|
||||
};
|
||||
Reference in New Issue
Block a user