mirror backend change

This commit is contained in:
2026-07-14 10:24:10 +08:00
parent afe32d0166
commit 16943476ea
+7 -1
View File
@@ -4,6 +4,12 @@ export const EDITOR_AGENT_MAX_ATTACHMENTS = 9;
export type EditorAgentMessageRole = 'user' | 'assistant' | 'system';
export type EditorAgentToolCallStatus =
| 'not_completed'
| 'completed'
| 'failed'
| 'cancelled';
export type EditorAgentAttachmentSource = 'canvas_resource' | 'library_asset';
export interface EditorAgentAttachmentRef {
@@ -78,10 +84,10 @@ export interface EditorAgentToolCallDisplayArgs {
export interface EditorAgentToolCall {
toolName: string;
status: EditorAgentToolCallStatus;
args: unknown;
displayArgs: EditorAgentToolCallDisplayArgs;
externalJobId?: string | null;
cancelledAt?: string | null;
images: EditorAgentGeneratedImage[];
// Older persisted conversation documents do not contain these media fields.
videos?: EditorAgentGeneratedVideo[];