Skip to content

OpsMind v1.3 — Agent 基座

Choose a tag to compare

@int2t05 int2t05 released this 04 Sep 03:26
· 449 commits to main since this release

V1.3 — Agent 基座

新增

  • Agent Loop — 基于 Eino 的 ReAct 循环(ReactAgent + ToolCallingModel + StreamToolCallChecker),替代 V1.2 的手写 OpenAIClient + 线性 RAG 管道
  • 订阅渠道网关 — runtime.Gateway[E] 通用网关(ring buffer 1024 + seq 游标重放 + 30s grace + 非阻塞 fan-out),替代 GenerationHub。对齐 LangGraph Server / Mastra Durable / OpenAI background
  • 9 内置工具 — bash / async_bash(StreamableTool) / read_file / write_file / edit_file / list_dir / glob / grep / mkdir
  • SubAgent — research(只读探查)+ coder(读写操作),通过 adk.NewAgentTool 包装为工具,父 Agent 委托子 Agent
  • 异步任务 — Task model + TaskManager 后台执行 + SQLite 持久化
  • Agent 数据隔离 — SQLite(glebarez/sqlite 纯 Go),与业务 PostgreSQL 分离
  • threads API — 12 端点(线程 CRUD + 流式对话 + 异步任务),替代 chat-sessions
  • 前端 parts 数组模型 — 对标 AI SDK UIMessage.parts,流式渲染解耦,tool_call/tool_result/reasoning 全事件渲染

架构

生产者(AgentRunner)与交付渠道(Gateway)解耦:runner 只产出事件,chat 层订阅并 Publish 到网关。

纯净审计

16 点 checklist 全量清理(溯源残留 / 装饰冗余 / 死内容 / doc-impl 裂隙 / 语言平台残留)。

升级注意

  • Agent 对话数据迁移到 SQLite(./data/agent.db),与业务库隔离
  • API 路径 chat-sessions → threads
  • V1.2 的 RAG 管道代码保留,作 V2.0 search_knowledge_base 工具后端
  • 配置项精简:移除 7 个零读取的 AIConfig 字段(DefaultTopK / ConfidenceThreshold / MaxHistoryMessages / RAG*)

Full Changelog: v1.2...v1.3