AS AgentScopeAPI 手册 / API Reference

InternalManagedAttemptController

@RestController @RequestMapping("/api/internal/sessions") public class InternalManagedAttemptController
源码Source io/agentscope/builder/web/api/InternalManagedAttemptController.java:31–92

内部托管尝试控制器,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.api 包。核心成员包括 abort、InternalManagedAttemptController。

Fenced control-plane abort delivery for one physical Managed AgentTask Attempt.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
AbortRequest记录record
承载中止请求数据的记录类型。
A record in io.agentscope.builder.web.api that carries data used when components deploys, schedules and serves agents.

构造器摘要Constructor Summary

构造器Constructor说明Description
public InternalManagedAttemptController(SessionTurnRunner turnRunner)
初始化 `InternalManagedAttemptController` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public ResponseEntity<Void> abort(String sessionId, String attemptId, AbortRequest request, Authentication authentication)
执行中止相关操作。
Performs the abort operation.

构造器详情Constructor Detail

InternalManagedAttemptController

public InternalManagedAttemptController(SessionTurnRunner turnRunner)

初始化 InternalManagedAttemptController 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
turnRunnerSessionTurnRunner轮次运行器(类型 `SessionTurnRunner`)。The turn runner.
源码Source io/agentscope/builder/web/api/InternalManagedAttemptController.java:37–39

方法详情Method Detail

abort

public ResponseEntity<Void> abort(String sessionId, String attemptId, AbortRequest request, Authentication authentication)

执行中止相关操作。

Performs the abort operation.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
attemptIdString尝试标识(类型 `String`)。The attempt id.
requestAbortRequest请求(类型 `AbortRequest`)。The request.
authenticationAuthenticationauthentication(类型 `Authentication`)。The authentication.
返回Returns ResponseEntity<Void>
返回ResponseEntity。Returns response entity.
源码Source io/agentscope/builder/web/api/InternalManagedAttemptController.java:41–68

嵌套类详情Nested Class Detail

AbortRequest

public record AbortRequest( String agentTaskId, String attemptId, long dispatchGeneration, String turnId, String reason)

承载中止请求数据的记录类型。位于 io.agentscope.builder.web.api 包。核心成员包括 agentTaskId、attemptId、dispatchGeneration、turnId、reason。

A record in io.agentscope.builder.web.api that carries data used when components deploys, schedules and serves agents. Declared in io.agentscope.builder.web.api.

基于官方固定版本源码静态生成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.