AS AgentScopeAPI 手册 / API Reference

Finding

@JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) public class Finding
源码Source io/agentscope/harness/coding/reviewer/Finding.java:29–169

Finding,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding.reviewer 包。核心成员包括 getId、setId、getSeverity、setSeverity、getCategory、setCategory。

A single reviewer finding — mirrors open-swe's Finding model in agent/reviewer_findings.py.

Findings are persisted in SqliteBaseStore namespace ["findings", thread_id] and batched into a single GitHub PR review by GitHubReviewPublisher.

方法摘要Method Summary

方法Method说明Description
public String getId()
获取标识。
Returns the id.
public void setId(String id)
设置标识。
Sets the id.
public String getSeverity()
获取严重程度。
Returns the severity.
public void setSeverity(String severity)
设置严重程度。
Sets the severity.
public String getCategory()
获取类别。
Returns the category.
public void setCategory(String category)
设置类别。
Sets the category.
public String getFile()
获取文件。
Returns the file.
public void setFile(String file)
设置文件。
Sets the file.
public Integer getStartLine()
获取 `getStartLine`。
Returns the start line.
public void setStartLine(Integer startLine)
设置 `setStartLine`。
Sets the start line.
public Integer getEndLine()
获取 `getEndLine`。
Returns the end line.
public void setEndLine(Integer endLine)
设置 `setEndLine`。
Sets the end line.
public String getDescription()
获取 `getDescription`。
Returns the description.
public void setDescription(String description)
设置 `setDescription`。
Sets the description.
public String getSuggestion()
获取 `getSuggestion`。
Returns the suggestion.
public void setSuggestion(String suggestion)
设置 `setSuggestion`。
Sets the suggestion.
public String getStatus()
获取状态。
Returns the status.
public void setStatus(String status)
设置状态。
Sets the status.
public Long getGithubCommentId()
获取 `getGithubCommentId`。
Returns the github comment id.
public void setGithubCommentId(Long githubCommentId)
设置 `setGithubCommentId`。
Sets the github comment id.
public String getNote()
获取 `getNote`。
Returns the note.
public void setNote(String note)
设置 `setNote`。
Sets the note.
public String toString()
返回 `toString` 结果。
Returns the to string.

方法详情Method Detail

getId

public String getId()

获取标识。

Returns the id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:66–68

setId

public void setId(String id)

设置标识。

Sets the id.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:70–72

getSeverity

public String getSeverity()

获取严重程度。

Returns the severity.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:74–76

setSeverity

public void setSeverity(String severity)

设置严重程度。

Sets the severity.

参数Parameters
名称Name类型Type说明Description
severityString严重程度(类型 `String`)。The severity.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:78–80

getCategory

public String getCategory()

获取类别。

Returns the category.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:82–84

setCategory

public void setCategory(String category)

设置类别。

Sets the category.

参数Parameters
名称Name类型Type说明Description
categoryString类别(类型 `String`)。The category.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:86–88

getFile

public String getFile()

获取文件。

Returns the file.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:90–92

setFile

public void setFile(String file)

设置文件。

Sets the file.

参数Parameters
名称Name类型Type说明Description
fileString文件(类型 `String`)。The file.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:94–96

getStartLine

public Integer getStartLine()

获取 getStartLine。

Returns the start line.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:98–100

setStartLine

public void setStartLine(Integer startLine)

设置 setStartLine。

Sets the start line.

参数Parameters
名称Name类型Type说明Description
startLineInteger启动 Line(类型 `Integer`)。The start line.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:102–104

getEndLine

public Integer getEndLine()

获取 getEndLine。

Returns the end line.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:106–108

setEndLine

public void setEndLine(Integer endLine)

设置 setEndLine。

Sets the end line.

参数Parameters
名称Name类型Type说明Description
endLineInteger结束 Line(类型 `Integer`)。The end line.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:110–112

getDescription

public String getDescription()

获取 getDescription。

Returns the description.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:114–116

setDescription

public void setDescription(String description)

设置 setDescription。

Sets the description.

参数Parameters
名称Name类型Type说明Description
descriptionString描述(类型 `String`)。The description.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:118–120

getSuggestion

public String getSuggestion()

获取 getSuggestion。

Returns the suggestion.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:122–124

setSuggestion

public void setSuggestion(String suggestion)

设置 setSuggestion。

Sets the suggestion.

参数Parameters
名称Name类型Type说明Description
suggestionStringsuggestion(类型 `String`)。The suggestion.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:126–128

getStatus

public String getStatus()

获取状态。

Returns the status.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:130–132

setStatus

public void setStatus(String status)

设置状态。

Sets the status.

参数Parameters
名称Name类型Type说明Description
statusString状态(类型 `String`)。The status.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:134–136

getGithubCommentId

public Long getGithubCommentId()

获取 getGithubCommentId。

Returns the github comment id.

返回Returns Long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:138–140

setGithubCommentId

public void setGithubCommentId(Long githubCommentId)

设置 setGithubCommentId。

Sets the github comment id.

参数Parameters
名称Name类型Type说明Description
githubCommentIdLonggithub Comment 标识(类型 `Long`)。The github comment id.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:142–144

getNote

public String getNote()

获取 getNote。

Returns the note.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:146–148

setNote

public void setNote(String note)

设置 setNote。

Sets the note.

参数Parameters
名称Name类型Type说明Description
noteStringnote(类型 `String`)。The note.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:150–152

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/harness/coding/reviewer/Finding.java:154–168
基于官方固定版本源码静态生成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.