ambiguous-pointer commented on PR #1616:
URL: https://github.com/apache/dubbo-admin/pull/1616#issuecomment-6571676348
## 本 PR 的范围收敛
按「只保留单纯的 GenAI OTel 可观察性」的要求,把工作区里混在一起的东西拆开了。
**留在本 PR**(`ba7b97e`):
- `invoke_agent` 这条 agent span 携带 `gen_ai.input.messages` /
`gen_ai.output.messages`——装的是这次交互的完整对话与最终回答。
- `interactionTrace` 增加 `Conversation`(最后一次模型调用看到的消息窗口)与
`Answer`(流给用户的最终回答)
- `runIteration` 记录这两个值,`EventInteractionEnd` 时把它们挂到 endState
- `semanticContent` 增加 `EventInteractionEnd` 分支
- tracing hook 在 agent span 上按 content 策略决定是否输出
- 文档 `docs/ai-agent-observability.md` 补了对应的说明
动机:多数后端(Langfuse 就是)从 trace 的根 span 上取 Input / Output,根上没有这两条属性时 trace
会渲染成「no input or output」;之前消息只写在模型 span 上,这一轮聊了什么、答了什么在链路上就看不见。
**拆到独立分支**(`fix/ai-persistence-deadline`):会话持久化的 deadline 修复。它与可观察性无关 —— 原来的
persistence context 带整个 interaction 的 deadline,一次 interaction 跑得比它久(多次模型调用 +
工具调用),deadline 到期后工具结果、最终回答、turn 关闭全部失败,整个 turn 被中止,下一个提问就没有历史。改成**每次写入各自带一个有界
deadline**,且最终回答持久化失败时不再中断交互(答案已经产生了,不该因为存储不健康就瞒住用户)。4 个文件、190 行,含 3 个新用例。
**没有进 PR**(保留在本地工作区,未提交):`agent.yaml` / `models.yaml` / `rag.yaml` /
`tools.yaml` / `hooks.yaml` 的模型与开关调整 —— 其中 `models.yaml` 的 `base_url`
被改成了一个**实例专属的阿里云百炼地址**(`llm-5xrv4zbjodexxmlp.cn-beijing.maas.aliyuncs.com`),提交上去会让所有其他用户的请求都打到那个实例上,所以整个配置文件都退回原状、只留在本地。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]