feat: add prompt startup actions and shared vision config

This commit is contained in:
Xin Wang
2026-08-01 23:31:14 +08:00
parent b747144ff1
commit 0331f8cd07
22 changed files with 1238 additions and 344 deletions

View File

@@ -196,6 +196,19 @@ export type TurnConfig = {
};
};
export type StartupAction = {
id: string;
phase: "preflight" | "opening";
toolId: string;
arguments: Record<string, unknown>;
required: boolean;
};
export type StartupConfig = {
executionMode: "sequential";
actions: StartupAction[];
};
/** 后端 AssistantOut(宽表 STI:瘦字段平铺,workflow 用 graph)。apiKey 读时打码 */
export type Assistant = {
id: string;
@@ -205,6 +218,7 @@ export type Assistant = {
greeting: string;
enableInterrupt: boolean;
turnConfig: TurnConfig;
startup: StartupConfig;
visionEnabled: boolean;
visionModelResourceId: string | null;
modelResourceIds: Partial<Record<ModelType, string>>;