GitHubOutboundClient
public final class GitHubOutboundClient
源码Source
io/agentscope/extensions/channel/github/GitHubOutboundClient.java:40–134GitHub 出站客户端,封装与远端服务的连接和调用。位于 io.agentscope.extensions.channel.github 包。核心成员包括 send、GitHubOutboundClient。
GitHub outbound HTTP client. Posts a comment via
POST /repos/{owner}/{repo}/issues/{number}/comments (works for both Issues and Pull
Requests — GitHub treats PR conversation comments as issue comments).
Inline PR review-line replies are out of MVP scope.
The OutboundAddress#to() format is "<channelId>:thread:<owner>/<repo>#<number>",
mirroring io.agentscope.harness.agent.gateway.channel.ChannelRouter output.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public GitHubOutboundClient(String apiBase, String token) | 初始化 `GitHubOutboundClient` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Mono<Void> send(OutboundAddress address, List<Msg> messages) | 执行发送相关操作。 Sends each message as a separate comment on the resolved thread. |
构造器详情Constructor Detail
GitHubOutboundClient
public GitHubOutboundClient(String apiBase, String token)
初始化 GitHubOutboundClient 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiBase | String | API 基类(类型 `String`)。The api base. |
token | String | 令牌(类型 `String`)。The token. |
源码Source
io/agentscope/extensions/channel/github/GitHubOutboundClient.java:47–50方法详情Method Detail
send
public Mono<Void> send(OutboundAddress address, List<Msg> messages)
执行发送相关操作。
Sends each message as a separate comment on the resolved thread.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
address | OutboundAddress | address(类型 `OutboundAddress`)。The address. |
messages | List<Msg> | 消息列表(类型 `List`)。The messages. |
Mono<Void>返回Mono。Returns mono.
源码Source
io/agentscope/extensions/channel/github/GitHubOutboundClient.java:53–66