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

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

Abierto
#1,968 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
15.9k
Forks
1.4k
Merge medio
1 d 17 h
PR fusionados (30 d)
163

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.