a10a2db27a
- 新增 visual_design_language.md 设计规范文档 - 新增 auth 设计 tokens (authBackground, authCard, authInput, feedback 系列等) - 重构登录/注册/验证码/重置密码页面为新设计系统 - 新增 AuthHeroHeader, AuthSurfaceCard, AuthSection, AuthField, PasswordField 组件 - 重构 AppBanner 和 Toast 支持多类型配置 (info/success/warning/error) - 后端 AgentScope: 重整 schemas/prompts/tools 作用域, 新增协议文档 - 更新 AGENTS.md 集成视觉设计语言约束
60 lines
972 B
Markdown
60 lines
972 B
Markdown
# Agent Chat Sessions Protocol
|
|
|
|
> **NOTE**: This document is the single source of truth. All implementations must follow this specification.
|
|
|
|
## Overview
|
|
|
|
Agent chat session state snapshot for preserving conversation context.
|
|
|
|
## Version
|
|
|
|
- **Current**: `1.0`
|
|
- **Status**: Active
|
|
|
|
---
|
|
|
|
## Session State Snapshot
|
|
|
|
```typescript
|
|
interface SessionStateSnapshot {
|
|
// Reserved for future use
|
|
// Currently unused, allowing custom extensions
|
|
[key: string]: any;
|
|
}
|
|
```
|
|
|
|
---
|
|
|
|
## Database Field
|
|
|
|
| Field | Type | Description |
|
|
|-------|------|-------------|
|
|
| state_snapshot | jsonb | Session state for preserving conversation context |
|
|
|
|
---
|
|
|
|
## JSON Examples
|
|
|
|
### Empty State
|
|
|
|
```json
|
|
{}
|
|
```
|
|
|
|
### Future Usage Example
|
|
|
|
```json
|
|
{
|
|
"conversation_context": {
|
|
"last_topic": "calendar_events",
|
|
"mentioned_dates": ["2026-03-15", "2026-03-20"]
|
|
},
|
|
"agent_memory": {
|
|
"user_preferences": {
|
|
"timezone": "Asia/Shanghai",
|
|
"language": "zh-CN"
|
|
}
|
|
}
|
|
}
|
|
```
|