a2aproject / a2aproject/A2A

[Feat]: Allow client generated context id.

Abierto
#1,317 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Shell
Estrellas
25.7k
Forks
2.6k
Merge medio
3 d 6 h
PR fusionados (30 d)
16

Descripción

### Is your feature request related to a problem? Please describe.

In a multi-agent deployment it's easier to keep the mapping on the server side, and some agent frameworks just allow providing session id so there is no need for mapping.

### Describe the solution you'd like

Remove wording around context id being server generated and add add "accepts_client_generated_context_id" to agent capabilities.

### Describe alternatives you've considered

1) leave as is
this makes some things complicated. for instance:

` A `
` / \ `
` \/ \/`
` B C`
` \ /`
` \/\/`
` D `

if we want to keep the same context in calls to D it is overly complex and in some cases impossible (B receives the initial context id, how is it supposed to pass it to C for reuse)?

2) use a new extension to "hint" the context id
this will work, but i think context id is so embedded in the spec, that i think this should be more explicit

### Additional context

_No response_

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

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.