feat: 按老师发布配置渲染快捷提示

This commit is contained in:
2026-09-29 17:04:55 +08:00
committed by 鲨鱼辣椒
parent 78cfde6734
commit bb96941461
6 changed files with 100 additions and 2 deletions

View File

@@ -6,6 +6,11 @@ export const TEACHER_CHECK_IN_INTERVAL_MS = 5 * 60 * 1000;
export const TEACHER_UNCHANGED_CHECK_IN_INTERVAL_MS = 15 * 60 * 1000;
export type TeacherRequestIntent = 'question' | 'suggestions' | 'guided-help' | 'check-in';
export interface TeacherShortcut {
label: string;
prompt: string;
}
export interface TeacherDefinition {
config_id?: string;
runtime?: 'local' | 'yuxi';
@@ -18,6 +23,7 @@ export interface TeacherDefinition {
icon_url?: string | null;
welcome_message: string;
suggested_questions: string[];
shortcuts?: TeacherShortcut[] | null;
system_prompt: string;
skills: Array<{
id: string;