ag-ui-protocol / ag-ui-protocol/ag-ui
feat(a2a): forward RunAgentInput.context and tools through @ag-ui/a2a
- 主要语言
- 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 还没有评估数据。