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 |
|---|---|---|
turnRunner | SessionTurnRunner | 轮次运行器(类型 `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 |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
attemptId | String | 尝试标识(类型 `String`)。The attempt id. |
request | AbortRequest | 请求(类型 `AbortRequest`)。The request. |
authentication | Authentication | authentication(类型 `Authentication`)。The authentication. |
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.