refactor: 简化会话创建请求结构

移除会话策略和代理配置相关字段,仅保留标题和描述。会话现在作为独立的对话容器,配置由自定义代理在查询时动态提供。
This commit is contained in:
wizardchen
2025-12-31 14:19:10 +08:00
committed by lyingbug
parent d954ba22af
commit c5228acbab
4 changed files with 21 additions and 116 deletions
+4 -3
View File
@@ -71,10 +71,9 @@ func (h *Handler) CreateSession(c *gin.Context) {
return
}
// Validate session creation request
// Sessions are now knowledge-base-independent:
// - All configuration comes from custom agent at query time
// - Session only stores basic info (tenant ID, title, etc.)
// - Session only stores basic info (tenant ID, title, description)
logger.Infof(
ctx,
"Processing session creation request, tenant ID: %d",
@@ -83,7 +82,9 @@ func (h *Handler) CreateSession(c *gin.Context) {
// Create session object with base properties
createdSession := &types.Session{
TenantID: tenantID.(uint64),
TenantID: tenantID.(uint64),
Title: request.Title,
Description: request.Description,
}
// Call service to create session