ReviewerSystemPrompt
public final class ReviewerSystemPrompt
源码Source
io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:25–128Reviewer 系统提示词,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding.prompt 包。核心成员包括 build、buildTemplate。
Constructs the system prompt for the reviewer agent.
Mirrors REVIEWER_PROMPT_TEMPLATE from open-swe-main's agent/reviewer.py.
The reviewer agent reviews GitHub PRs, records structured findings, and publishes a single
GitHub review. It is read-only: no commits, no pushes, no PR creation.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static String build(String workingDir, String repoOwner, String repoName, int prNumber)static | 构建并返回最终实例。 Builds the reviewer system prompt. |
public static String buildTemplate(String workingDir)static | 构建模板。 Builds a generic template prompt (placeholders for dynamic substitution). |
方法详情Method Detail
build
public static String build(String workingDir, String repoOwner, String repoName, int prNumber)
static
构建并返回最终实例。
Builds the reviewer system prompt.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workingDir | String | working 目录(类型 `String`)。sandbox working directory |
repoOwner | String | 仓库所有者(类型 `String`)。GitHub repo owner (may be empty/null for template use) |
repoName | String | 仓库名称(类型 `String`)。GitHub repo name (may be empty/null for template use) |
prNumber | int | 用于模板使用)的PR 数量(可能为 0。PR number (may be 0 for template use) |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:37–42buildTemplate
public static String buildTemplate(String workingDir)
static
构建模板。
Builds a generic template prompt (placeholders for dynamic substitution).
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workingDir | String | working 目录(类型 `String`)。The working dir. |
String返回字符串结果。Returns a string.
源码Source
io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:45–47