refactor: unify system tools as resources

This commit is contained in:
Xin Wang
2026-08-04 17:05:26 +08:00
parent d1b05f16c7
commit 74a8be2357
26 changed files with 788 additions and 507 deletions

View File

@@ -232,7 +232,6 @@ export type Assistant = {
enableInterrupt: boolean;
turnConfig: TurnConfig;
startup: StartupConfig;
systemTools: SystemToolKind[];
visionEnabled: boolean;
visionModelResourceId: string | null;
modelResourceIds: Partial<Record<ModelType, string>>;
@@ -365,7 +364,7 @@ export type SystemToolDefinition = {
schemaVersion: number;
type: "system";
config: {
kind: "end_conversation";
kind: SystemToolKind;
messageType: "none" | "custom";
customMessage: string;
captureReason: boolean;