AS AgentScopeAPI 手册 / API Reference

TurnLease

public final class TurnLease implements AutoCloseable
源码Source io/agentscope/builder/web/coord/TurnLeaseService.java:189–230

轮次 Lease,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.coord 包,实现 AutoCloseable。核心成员包括 sessionId、instanceId、coordinationId、close。

A class in io.agentscope.builder.web.coord that deploys, schedules and serves agents. Declared in io.agentscope.builder.web.coord. Implements AutoCloseable.

方法摘要Method Summary

方法Method说明Description
public String sessionId()
返回会话标识。
Returns the session id.
public String instanceId()
返回实例标识。
Returns the instance id.
public String coordinationId()
返回 `coordinationId` 结果。
Unique shared-store owner token for this physical turn.
public void close()
关闭连接并释放相关资源。
Releases resources and connections.

方法详情Method Detail

sessionId

public String sessionId()

返回会话标识。

Returns the session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/coord/TurnLeaseService.java:208–210

instanceId

public String instanceId()

返回实例标识。

Returns the instance id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/coord/TurnLeaseService.java:212–214

coordinationId

public String coordinationId()

返回 coordinationId 结果。

Unique shared-store owner token for this physical turn.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/coord/TurnLeaseService.java:217–219

close

public void close()

关闭连接并释放相关资源。

Releases resources and connections.

源码Source io/agentscope/builder/web/coord/TurnLeaseService.java:221–229
基于官方固定版本源码静态生成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.