a2aproject / a2aproject/a2a-dotnet

[Feat]: Better scoped `DistributedCacheTaskStore`

Open
#192 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
262
Forks
64
Avg merge
5d 2h
Merged PRs (30d)
31

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.