CopilotKitExampleApplication
@SpringBootApplication public class CopilotKitExampleApplication
源码Source
io/agentscope/examples/copilotkit/CopilotKitExampleApplication.java:35–55CopilotKit 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 |
|---|---|---|
args | String[] | 参数(类型 `String[]`)。The args. |
源码Source
io/agentscope/examples/copilotkit/CopilotKitExampleApplication.java:38–41