CodingAgentApplication
@SpringBootApplication public class CodingAgentApplication
io/agentscope/harness/coding/CodingAgentApplication.java:62–146Coding 智能体应用,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding 包。核心成员包括 main、sqliteBaseStore、codingAgentMetrics、reviewerFindingsService、gitHubReviewPublisher、codingToolkit。
Spring Boot application entry point for the coding agent webhook service.
Assembles all components:
-
CodingBootstrapwith dual agents (coding + reviewer) -
SqliteBaseStorefor thread metadata, queue, deliveries, findings -
RunDispatcherfor webhook → agent dispatch -
GitHubWebhookHandlerfor incoming GitHub events
Run
mvn -pl agentscope-examples/agents/agentscope-codingagent -am spring-boot:run
方法摘要Method Summary
方法详情Method Detail
main
public static void main(String[] args)
设置主。
Performs the main operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
args | String[] | 参数(类型 `String[]`)。The args. |
io/agentscope/harness/coding/CodingAgentApplication.java:65–67sqliteBaseStore
public SqliteBaseStore sqliteBaseStore() throws SQLException
返回 sqliteBaseStore 结果。
Returns the sqlite base store.
SqliteBaseStoreSQLException可能抛出 `SQLException`。Thrown when the operation cannot be completed.
io/agentscope/harness/coding/CodingAgentApplication.java:69–74codingAgentMetrics
public CodingAgentMetrics codingAgentMetrics(MeterRegistry registry)
设置该参数。
Performs the coding agent metrics operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registry | MeterRegistry | 注册表(类型 `MeterRegistry`)。The registry. |
CodingAgentMetricsio/agentscope/harness/coding/CodingAgentApplication.java:76–79reviewerFindingsService
public ReviewerFindingsService reviewerFindingsService(SqliteBaseStore store, CodingAgentMetrics metrics)
执行 reviewerFindingsService 方法。
Performs the reviewer findings service operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
store | SqliteBaseStore | 存储实例(类型 `SqliteBaseStore`)。The store. |
metrics | CodingAgentMetrics | 指标(类型 `CodingAgentMetrics`)。The metrics. |
ReviewerFindingsServiceio/agentscope/harness/coding/CodingAgentApplication.java:81–85gitHubReviewPublisher
public GitHubReviewPublisher gitHubReviewPublisher(CodingAgentMetrics metrics)
设置该参数。
Performs the git hub review publisher operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
metrics | CodingAgentMetrics | 指标(类型 `CodingAgentMetrics`)。The metrics. |
GitHubReviewPublisherio/agentscope/harness/coding/CodingAgentApplication.java:87–90codingToolkit
public Toolkit codingToolkit(ObjectProvider<RunDispatcher> dispatcherProvider)
设置该参数。
Performs the coding toolkit operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
dispatcherProvider | ObjectProvider<RunDispatcher> | 调度器提供者(类型 `ObjectProvider`)。The dispatcher provider. |
Toolkitio/agentscope/harness/coding/CodingAgentApplication.java:92–109reviewerToolkit
public Toolkit reviewerToolkit(ReviewerFindingsService findingsService, GitHubReviewPublisher publisher)
执行 reviewerToolkit 方法。
Performs the reviewer toolkit operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
findingsService | ReviewerFindingsService | findings 服务(类型 `ReviewerFindingsService`)。The findings service. |
publisher | GitHubReviewPublisher | publisher(类型 `GitHubReviewPublisher`)。The publisher. |
Toolkitio/agentscope/harness/coding/CodingAgentApplication.java:111–122codingBootstrap
public CodingBootstrap codingBootstrap(Toolkit codingToolkit, Toolkit reviewerToolkit, SqliteBaseStore store) throws IOException
执行 codingBootstrap 方法。
Performs the coding bootstrap operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
codingToolkit | Toolkit | coding 工具包(类型 `Toolkit`)。The coding toolkit. |
reviewerToolkit | Toolkit | reviewer 工具包(类型 `Toolkit`)。The reviewer toolkit. |
store | SqliteBaseStore | 存储实例(类型 `SqliteBaseStore`)。The store. |
CodingBootstrapIOException可能抛出 `IOException`。Thrown when the operation cannot be completed.
io/agentscope/harness/coding/CodingAgentApplication.java:124–133runDispatcher
public RunDispatcher runDispatcher(CodingBootstrap bootstrap, SqliteBaseStore store, CodingAgentMetrics metrics)
运行调度器。
Runs the dispatcher.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
bootstrap | CodingBootstrap | bootstrap(类型 `CodingBootstrap`)。The bootstrap. |
store | SqliteBaseStore | 存储实例(类型 `SqliteBaseStore`)。The store. |
metrics | CodingAgentMetrics | 指标(类型 `CodingAgentMetrics`)。The metrics. |
RunDispatcherio/agentscope/harness/coding/CodingAgentApplication.java:135–139gitHubWebhookHandler
public GitHubWebhookHandler gitHubWebhookHandler(RunDispatcher dispatcher, SqliteBaseStore store, CodingAgentMetrics metrics)
执行 gitHubWebhookHandler 方法。
Performs the git hub webhook handler operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
dispatcher | RunDispatcher | 调度器(类型 `RunDispatcher`)。The dispatcher. |
store | SqliteBaseStore | 存储实例(类型 `SqliteBaseStore`)。The store. |
metrics | CodingAgentMetrics | 指标(类型 `CodingAgentMetrics`)。The metrics. |
GitHubWebhookHandlerio/agentscope/harness/coding/CodingAgentApplication.java:141–145