CodingChatCli
public class CodingChatCli
源码Source
io/agentscope/harness/coding/CodingChatCli.java:58–207Coding 聊天 Cli,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.coding 包。核心成员包括 main。
Local CLI entry point for the Coding Agent.
Starts the CodingBootstrap, obtains the ChatUiChannel, and runs an
interactive REPL loop on standard input/output. Does not require a webhook — suitable for local
development and smoke-testing.
Run
export DASHSCOPE_API_KEY=your_key_here
mvn -pl agentscope-examples/agents/agentscope-codingagent -am compile \
org.codehaus.mojo:exec-maven-plugin:3.6.3:java \
-Dexec.mainClass=io.agentscope.harness.coding.CodingChatCli
Subcommands
-
review <pr_url>— trigger the reviewer agent on the given PR URL -
Any other text — send to the coding agent
Type /exit or /quit to terminate.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static void main(String[] args) throws Exceptionstatic | 设置主。 Performs the main operation. |
方法详情Method Detail
main
public static void main(String[] args) throws Exception
static
设置主。
Performs the main operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
args | String[] | 参数(类型 `String[]`)。The args. |
Exception可能抛出 `Exception`。Thrown when the operation cannot be completed.
源码Source
io/agentscope/harness/coding/CodingChatCli.java:66–169