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

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

Ouverte
#1,968 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
15.9k
Forks
1.4k
Merge moyen
1 j 17 h
PR mergées (30 j)
163

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.