Skip to content

follow-up(adapter): 基于 #316 添加 Dify 工作流适配器#2

Open
Qiyuanqiii wants to merge 1 commit into
RerankerGuo:feat/cross-platform-adapter-235from
Qiyuanqiii:followup/issue-235-dify-adapter-on-316
Open

follow-up(adapter): 基于 #316 添加 Dify 工作流适配器#2
Qiyuanqiii wants to merge 1 commit into
RerankerGuo:feat/cross-platform-adapter-235from
Qiyuanqiii:followup/issue-235-dify-adapter-on-316

Conversation

@Qiyuanqiii

Copy link
Copy Markdown

Refs TencentCloud#235
Depends on TencentCloud#316

定位说明

这是按维护者对 TencentCloud#438 的分流建议拆出的 TencentCloud#316 后续增量。

TencentCloud#316 已经提供 shared Gateway client / adapter kit 基线,因此本 PR 不再提供通用 Gateway SDK,也不引入第二套 Gateway client 抽象。Dify adapter 只复用 TencentCloud#316GatewayMemoryClient 边界,把 Dify workflow 字段映射到现有 Gateway /recall/capture 路由。

本 PR 做了什么

  • 添加 DifyWorkflowMemoryAdapter
  • recall 阶段将 query / inputs.query 映射到 /recall
  • capture 阶段将 queryanswer 映射到 /capture
  • 复用 feat(adapters): add gateway client adapter kit TencentCloud/TencentDB-Agent-Memory#316GatewayMemoryClientOptionsGatewayMemoryClient
  • 为 Dify 构造稳定的 platform:user:conversation session key。
  • 新增 Dify 接入文档、包导出和中英文 README 入口。

非目标范围

本 PR 不包含:

  • 通用 Gateway SDK 或新的 HTTP client
  • MCP server
  • Python SDK
  • Codex / Claude hooks
  • core/runtime 改动
  • CI 或打包流程改动

验证

  • Targeted tests:2 files / 9 tests passed
  • Full test:6 files / 76 tests passed
  • Build:passed
  • Diff check:passed

截图

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant