a2aproject / a2aproject/a2a-python

[Bug]: `taskId` without `contextId` creates a new context instead of inheriting it

Offen
#1,206 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @rohityan Auf GitHub ansehen
component: server status:awaiting response status:stale
Vorherrschende Sprache
Python
Sterne
2.1k
Forks
496
Ø Merge
4 T. 17 Std.
Gemergte PRs (30 T.)
12

Beschreibung

### What happened?

Spec:
> Agents MUST infer contextId from the task if only taskId is provided

Code:
```python
request_context = await self._request_context_builder.build(
params=params,
task_id=original_task_id,
context_id=original_context_id,
task=None,
context=call_context,
)
```

Then further...
```
if not self._context_id and not self._params.message.context_id:
self._params.message.context_id = self._context_id_generator.generate(...)
```

I found no sight of using the task's context, it seems to generate it anyway. But please correct me if I'm wrong.

### Relevant log output

```shell

```

### Code of Conduct

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.