a2aproject / a2aproject/A2A

[Feat]: contexts APIs needed

未關閉
#1,419 2 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Shell
星號
25.7k
分支
2.6k
平均合併
3 天 6 小時
30 天內合併 PR
16

描述

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

The A2A protocol is "agent to agent", not "human to agent". But, if you're building a chat experience, then you'll want to use A2A (or perhaps "H2A" Human-2-Agent!) to to be able to list and search contexts to find your chats

Perhaps this should be an extension?

### Describe the solution you'd like

```protobuf
message Context {
string id = 1 [(google.api.field_behavior) = REQUIRED];
}

// List tasks with optional filtering and pagination.
rpc ListContexts(ListContextsRequest) returns (ListContextResponse) {
option (google.api.http) = {
get: "/contexts"
additional_bindings: {
get: "/{tenant}/contexts"
}
};
}

// List tasks with optional filtering and pagination.
rpc SearchContexts(SearchContextsRequest) returns (SearchContextResponse) {
option (google.api.http) = {
post: "/contexts/search"
additional_bindings: {
get: "/{tenant}/contexts"
}
};
}

```

### 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 摘要。