a2aproject / a2aproject/a2a-python

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

Đang mở
#1,206 3 bình luận 0 reaction 1 người được giao Được @rohityan nhận Xem trên GitHub
component: server status:awaiting response status:stale
Ngôn ngữ chính
Python
Star
2.1k
Fork
496
Merge trung bình
4 ngày 17 giờ
Pull request đã merge (30 ngày)
12

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.