更新编辑器代理消息文档版本为 2

This commit is contained in:
2026-07-13 14:24:58 +08:00
parent f774a791e8
commit 6beaab0454
2 changed files with 1 additions and 4 deletions
@@ -1,9 +1,6 @@
// 画布Agent对话契约:会话元数据存 SpacetimeDB,消息正文整体存 OSS(editor-agent/{conversationId}.json)。
export const EDITOR_AGENT_MAX_ATTACHMENTS = 9;
export const EDITOR_AGENT_TITLE_MAX_CHARS = 20;
export const EDITOR_AGENT_DEFAULT_CONVERSATION_TITLE = '新对话';
export const EDITOR_AGENT_MESSAGES_DOCUMENT_VERSION = 1;
export type EditorAgentMessageRole = 'user' | 'assistant' | 'system';
@@ -6,7 +6,7 @@ use serde::{Deserialize, Serialize};
pub const EDITOR_AGENT_MAX_ATTACHMENTS: usize = 9;
pub const EDITOR_AGENT_TITLE_MAX_CHARS: usize = 20;
pub const EDITOR_AGENT_DEFAULT_CONVERSATION_TITLE: &str = "新对话";
pub const EDITOR_AGENT_MESSAGES_DOCUMENT_VERSION: u32 = 1;
pub const EDITOR_AGENT_MESSAGES_DOCUMENT_VERSION: u32 = 2;
#[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]