后端: 1.收口阶段 6 agent 结构迁移,将 newAgent 内核与 agentsvc 编排层迁入 services/agent - 切换 Agent 启动装配与 HTTP handler 直连 agent sv,移除旧 service agent bridge - 补齐 Agent 对 memory、task、task-class、schedule 的 RPC 适配与契约字段 - 扩展 schedule、task、task-class RPC/contract 支撑 Agent 查询、写入与 provider 切流 - 更新迁移文档、README 与相关注释,明确 agent 当前切流点和剩余 memory 迁移面
37 lines
1.4 KiB
Go
37 lines
1.4 KiB
Go
package model
|
|
|
|
import "time"
|
|
|
|
// TaskQueryParams 描述快捷任务查询路径传给业务层的内部查询参数。
|
|
//
|
|
// 职责边界:
|
|
// 1. 这里只承载“查询条件”本身,不负责 args 解析、默认值填充和错误提示;
|
|
// 2. 所有字段均为轻量筛选语义,便于 quick_task 节点和 service 层直接复用;
|
|
// 3. 不承担 LLM 工具协议,因为 query_tasks 工具链已下线。
|
|
type TaskQueryParams struct {
|
|
Quadrant *int
|
|
SortBy string // deadline | priority | id
|
|
Order string // asc | desc
|
|
Limit int
|
|
IncludeCompleted bool
|
|
Keyword string
|
|
DeadlineBefore *time.Time
|
|
DeadlineAfter *time.Time
|
|
}
|
|
|
|
// TaskQueryResult 描述快捷任务查询返回给上层的轻量任务视图。
|
|
//
|
|
// 职责边界:
|
|
// 1. 这里只保留展示所需字段,避免把底层任务模型直接暴露给 agent 节点;
|
|
// 2. 结果既可用于 quick_task 节点文本回复,也可供 service 装配其他轻量输出;
|
|
// 3. 不负责序列化策略和文案渲染。
|
|
type TaskQueryResult struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
PriorityGroup int `json:"priority_group"`
|
|
EstimatedSections int `json:"estimated_sections"`
|
|
PriorityLabel string `json:"priority_label"`
|
|
IsCompleted bool `json:"is_completed"`
|
|
DeadlineAt string `json:"deadline_at,omitempty"`
|
|
}
|