a2aproject / a2aproject/a2a-dotnet

[Feat]: Better scoped `DistributedCacheTaskStore`

オープン
#192 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
262
フォーク
64
平均マージ
5日 2時間
マージ済み PR(30日)
31

説明

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

I would like some way to make `DistributedCacheTaskStore` scoped to an organization or a user.

We are building an application that will host multiple agents for multiple organizations / users.

I would like some way of scoping some tasks to an organization / user. A simple way of doing this is make this service `Scoped` and configure it something like `BuildTaskCacheKey(string taskId) => $"{httpContext. GetOrganization()}::task:{taskId}";`.

### Describe the solution you'd like

Allow some way to overwrite
```
static string BuildTaskCacheKey(string taskId) => $"task:{taskId}";

static string BuildPushNotificationsCacheKey(string taskId) => $"task-push-notification:{taskId}";
```

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

### Code of Conduct

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

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

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

評価

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

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

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