AS AgentScopeAPI 手册 / API Reference

ReviewerSystemPrompt

public final class ReviewerSystemPrompt
源码Source io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:25–128

Reviewer 系统提示词,承载智能体的部署、调度与服务化运行。位于 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
workingDirStringworking 目录(类型 `String`)。sandbox working directory
repoOwnerString仓库所有者(类型 `String`)。GitHub repo owner (may be empty/null for template use)
repoNameString仓库名称(类型 `String`)。GitHub repo name (may be empty/null for template use)
prNumberint用于模板使用)的PR 数量(可能为 0。PR number (may be 0 for template use)
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:37–42

buildTemplate

public static String buildTemplate(String workingDir)
static

构建模板。

Builds a generic template prompt (placeholders for dynamic substitution).

参数Parameters
名称Name类型Type说明Description
workingDirStringworking 目录(类型 `String`)。The working dir.
返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/prompt/ReviewerSystemPrompt.java:45–47
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.