AS AgentScopeAPI 手册 / API Reference

GatewayApp

@SpringBootApplication public class GatewayApp
源码Source io/agentscope/builder/GatewayApp.java:38–44

网关应用,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder 包。核心成员包括 main。

Entry point for the builder gateway plane.

A thin Spring Cloud Gateway (Server WebFlux) edge: pure path-based routing with no business logic, no database, and no security of its own — authentication stays enforced by the target plane (JWT on user APIs, internal token on plane-to-plane APIs).

  • Session turn traffic (events, SSE stream, hands-stats) and the worker HTTP API route to the data plane;

  • everything else under /api/** (catalog, environments, memory stores, vaults, deployments, session lifecycle) plus the console SPA routes to the control plane;

  • plane-to-plane traffic (/api/internal/**, /api/outbound/**) is dialed directly between planes; if such a call does hit the gateway it falls through to the control plane, which still enforces the internal token (or 404s) — nothing is exposed.

方法摘要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/builder/GatewayApp.java:41–43
基于官方固定版本源码静态生成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.