a2aproject / a2aproject/a2a-python

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

オープン
#1,206 コメント 3 件 リアクション 0 件 担当者 1 名 @rohityan が担当を希望しています GitHub で見る
component: server status:awaiting response status:stale
主要言語
Python
スター
2.1k
フォーク
496
平均マージ
4日 17時間
マージ済み PR(30日)
12

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。