RequestPrReviewTool
public class RequestPrReviewTool
源码Source
io/agentscope/harness/coding/tools/RequestPrReviewTool.java:26–62请求 Pr Review 工具,封装可被智能体调用的能力。位于 io.agentscope.harness.coding.tools 包。核心成员包括 request_pr_review、RequestPrReviewTool。
Tool for triggering the reviewer agent on a GitHub PR. When called by the coding agent, this
tool enqueues a reviewer run via the Consumer callback injected at construction time.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RequestPrReviewTool(Consumer<String> reviewerDispatcher) | 初始化 `RequestPrReviewTool` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String request_pr_review(String prUrl) | 设置该参数。 Performs the request pr review operation. |
构造器详情Constructor Detail
RequestPrReviewTool
public RequestPrReviewTool(Consumer<String> reviewerDispatcher)
初始化 RequestPrReviewTool 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
reviewerDispatcher | Consumer<String> | reviewer 调度器(类型 `Consumer`)。callback that accepts a PR URL and asynchronously dispatches the reviewer agent |
源码Source
io/agentscope/harness/coding/tools/RequestPrReviewTool.java:34–36方法详情Method Detail
request_pr_review
public String request_pr_review(String prUrl)
设置该参数。
Performs the request pr review operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
prUrl | String | pr URL(类型 `String`)。The pr url. |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/coding/tools/RequestPrReviewTool.java:38–61