更新编辑器代理消息文档版本为 2
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user