AS AgentScopeAPI 手册 / API Reference

SandboxServiceController

@RestController @RequestMapping("/sandbox") public class SandboxServiceController
源码Source io/agentscope/runtime/autoconfigure/controller/SandboxServiceController.java:37–296

沙箱服务控制器,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.autoconfigure.controller 包。核心成员包括 registerEndpoints、handlePost、handleGet、handleDelete。

A class in io.agentscope.runtime.autoconfigure.controller that deploys, schedules and serves agents. Declared in io.agentscope.runtime.autoconfigure.controller.

方法摘要Method Summary

方法Method说明Description
public void registerEndpoints()
注册 `registerEndpoints`。
Registers the endpoints.
public ResponseEntity<Map<String, Object>> handlePost(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)
处理后置。
Handle POST requests to remote wrapper endpoints
public ResponseEntity<Map<String, Object>> handleGet(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)
处理读取。
Handle GET requests to remote wrapper endpoints
public ResponseEntity<Map<String, Object>> handleDelete(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)
处理删除。
Handle DELETE requests to remote wrapper endpoints

方法详情Method Detail

registerEndpoints

public void registerEndpoints()

注册 registerEndpoints。

Registers the endpoints.

源码Source io/agentscope/runtime/autoconfigure/controller/SandboxServiceController.java:48–74

handlePost

public ResponseEntity<Map<String, Object>> handlePost(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)

处理后置。

Handle POST requests to remote wrapper endpoints

参数Parameters
名称Name类型Type说明Description
requestDataMap<String, Object>请求数据(类型 `Map`)。The request data.
requestjakarta.servlet.http.HttpServletRequest请求(类型 `jakarta.servlet.http.HttpServletRequest`)。The request.
返回Returns ResponseEntity<Map<String, Object>>
返回ResponseEntity>。Returns response entity.
源码Source io/agentscope/runtime/autoconfigure/controller/SandboxServiceController.java:79–86

handleGet

public ResponseEntity<Map<String, Object>> handleGet(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)

处理读取。

Handle GET requests to remote wrapper endpoints

参数Parameters
名称Name类型Type说明Description
requestDataMap<String, Object>请求数据(类型 `Map`)。The request data.
requestjakarta.servlet.http.HttpServletRequest请求(类型 `jakarta.servlet.http.HttpServletRequest`)。The request.
返回Returns ResponseEntity<Map<String, Object>>
返回ResponseEntity>。Returns response entity.
源码Source io/agentscope/runtime/autoconfigure/controller/SandboxServiceController.java:91–98

handleDelete

public ResponseEntity<Map<String, Object>> handleDelete(Map<String, Object> requestData, jakarta.servlet.http.HttpServletRequest request)

处理删除。

Handle DELETE requests to remote wrapper endpoints

参数Parameters
名称Name类型Type说明Description
requestDataMap<String, Object>请求数据(类型 `Map`)。The request data.
requestjakarta.servlet.http.HttpServletRequest请求(类型 `jakarta.servlet.http.HttpServletRequest`)。The request.
返回Returns ResponseEntity<Map<String, Object>>
返回ResponseEntity>。Returns response entity.
源码Source io/agentscope/runtime/autoconfigure/controller/SandboxServiceController.java:103–110
基于官方固定版本源码静态生成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.