AS AgentScopeAPI 手册 / API Reference

CopilotKitExampleApplication

@SpringBootApplication public class CopilotKitExampleApplication
源码Source io/agentscope/examples/copilotkit/CopilotKitExampleApplication.java:35–55

CopilotKit Example 应用,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.examples.copilotkit 包。核心成员包括 main。

AG-UI Example Application.

This application demonstrates how to expose AgentScope agents via the AG-UI protocol using Spring WebFlux.

Usage:

  • Set the DASHSCOPE_API_KEY environment variable

  • Run this application

  • Open http://localhost:8080 in a browser

  • Or use curl: curl -X POST http://localhost:8080/agui/run -H "Content-Type: application/json" -d '{"threadId":"test","runId":"1","messages":[{"id":"m1","role":"user","content":"Hello!"}]}'

方法摘要Method Summary

方法Method说明Description
public static void main(String[] args)
static
设置主。
Performs the main operation.

方法详情Method Detail

main

public static void main(String[] args)
static

设置主。

Performs the main operation.

参数Parameters
名称Name类型Type说明Description
argsString[]参数(类型 `String[]`)。The args.
源码Source io/agentscope/examples/copilotkit/CopilotKitExampleApplication.java:38–41
基于官方固定版本源码静态生成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.