AS AgentScopeAPI 手册 / API Reference

CodingChatCli

public class CodingChatCli
源码Source io/agentscope/harness/coding/CodingChatCli.java:58–207

Coding 聊天 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 Exception
static
设置主。
Performs the main operation.

方法详情Method Detail

main

public static void main(String[] args) throws Exception
static

设置主。

Performs the main operation.

参数Parameters
名称Name类型Type说明Description
argsString[]参数(类型 `String[]`)。The args.
抛出Throws
  • Exception 可能抛出 `Exception`。Thrown when the operation cannot be completed.
源码Source io/agentscope/harness/coding/CodingChatCli.java:66–169
基于官方固定版本源码静态生成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.