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

This commit is contained in:
2026-09-29 17:04:55 +08:00
parent 4103754b80
commit 53d5b6ba5b
7 changed files with 147 additions and 3 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;