Open
[FEAT-023] OpenCode 适配器 #66
TTAdd on  May 8
TT
TTCollaborators
May 8 Create

优先级: Must Have
所属里程碑: M1 - 核心可用
预计工作量: 10 人天

你的功能请求是否与某个问题有关?请描述一下。
OpenCode 是开源的 Agent 运行时,需要开发适配器将其集成到 polymind 系统中,作为 M1 阶段的默认 Agent 实现。

请描述你希望的解决方案
实现 OpenCode 适配器,支持统一的 Adapter 接口:

  1. start(config, workspace_path): 启动 Adapter 和 Agent,初始化环境
  2. stop(): 停止 Adapter 和 Agent,清理资源
  3. send_message(content, session_id): 发送消息,异步返回事件流
  4. restore_state(): 从 Workspace 恢复之前的状态
  5. create_session(session_id): 创建新的 Session 上下文
  6. close_session(session_id): 关闭 Session,清理资源
  7. 正确读写 Workspace 目录下的文件
  8. 完善的错误处理和日志记录

验收标准:

依赖:

  • FEAT-019: 沙箱资源隔离
  • FEAT-020: Workspace 目录结构

请描述你考虑过的其他替代方案

  • 直接嵌入 Agent 逻辑: 耦合度高,不利于切换不同 Agent 运行时

附加背景
M1 阶段的核心 Adapter 实现。

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
May 8 Added label: sig/sig-intelligence
openeuler-ci-bot
openeuler-ci-botCollaborators
May 8 Comments:

Welcome To openEuler Community

Hey @ftboy , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-intelligence ,
and any of the maintainers: @fromhsc, @gogoxiaoxiao, @huzhengce, @kaitiandu, @liumiao27, @lyhu, @wqianli ,
and any of the committers: @ftboy, @lipingEmmaSiguyi, @randy1568 .

likedislike