ag-ui-protocol / ag-ui-protocol/ag-ui

feat(a2a): forward RunAgentInput.context and tools through @ag-ui/a2a

未关闭
#1,968 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
15.9k
派生
1.4k
平均合并
1 天 17 小时
30 天内合并 PR
163

描述

Follow-up to #1936 / #1938.

### Context
#1936 fixed `RunAgentInput.state` being dropped by `@ag-ui/a2a` (forwarded via `x-agui-state` metadata + STATE_SNAPSHOT/STATE_DELTA on the inbound side). That PR intentionally scoped to `state` only.

### Remaining gap
`A2AAgent.createSendParams()` still does not forward the other two host-context fields defined on `RunAgentInput`:
- `context?: ContextVariable[]` — semantic prompt items
- `tools?: Tool[]` — extra tools for the run

Both are silently dropped, so an A2A-bridged agent has no access to them.

### Proposed work
- Forward `context` and `tools` through `createSendParams()` using the same metadata-extension pattern #1936 established for `state`.
- Add tests mirroring the #1936 suite (passthrough + empty/omitted cases) for each field.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。