follow-up(adapter): 添加 Dify 工作流记忆适配器#438
Conversation
|
Triage note for #235 duplicate/scope cleanup: The shared Gateway client / generic adapter SDK part now overlaps with #316, which is the currently verified lightweight baseline for #235. #316 is CI green, locally verified, and keeps the reusable boundary small: GatewayMemoryClient + createGatewayPlatformAdapter() + lifecycle mapping tests + focused docs. For this PR, please consider re-scoping rather than merging it as-is:
This is not a rejection of the platform-specific work. It is a request to avoid merging multiple competing adapter frameworks from one broad #235 PR now that a smaller canonical gateway-client base exists. |
感谢大佬您的分流说明,我接受这个方向。您指出 #316 已经作为 #235 的 shared Gateway client / adapter kit 基线后,我重新收窄了 #438 的定位:不再把它作为通用 Gateway SDK 或跨平台适配器总方案,而是改成一个 Dify-only follow-up。 本次已推送更新 commit:7ec8901 调整点:
验证:
|
大佬大佬,能不能麻烦您有空再帮忙看下这个收窄后的方向是否符合预期,如果您仍然觉得应该基于 #316 merge 后再继续拆分,我也可以继续调整。 |
|
Thank you for submitting this PR and participating in Tencent Rhino-bird Open-source Training Program! |
Refs #235
定位说明
根据维护者的分流建议,本 PR 已重新收窄范围:不再作为 #235 的通用 Gateway client / 跨平台适配器总方案,而是作为 #316 之后的 Dify 平台适配 follow-up。
#316 已覆盖 shared Gateway client / adapter kit 的基础边界,因此本 PR 移除了原先新增的通用 Gateway SDK 抽象,只保留 Dify workflow 到现有 Gateway
/recall、/capture路由的字段映射和文档。本 PR 做了什么
DifyWorkflowMemoryAdapter,用于把 Dify workflow 输入映射到 TencentDB Agent Memory Gateway:query/inputs.query->/recallquery+answer->/capturesession_key:platform:user:conversationsession_id/recall和/capturedocs/DIFY-ADAPTER.md,说明 Dify workflow / HTTP-only 节点接入方式非目标范围
本 PR 不再包含:
这些应拆到更小的后续 PR,或基于 #316 的 Gateway client 边界继续推进。
验证
验证结果:
验证截图