AS AgentScopeAPI 手册 / API Reference

TurnBusyException

public final class TurnBusyException extends Exception
源码Source io/agentscope/harness/agent/gateway/TurnBusyException.java:24–46

轮次 Busy 异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.gateway 包,继承自 Exception。核心成员包括 getGateKey、TurnBusyException。

Thrown when a session turn gate cannot be acquired because another turn holds the lock.

HarnessGateway maps this to an empty reactor.core.publisher.Mono so duplicate wakeup or concurrent inbound requests for the same session are skipped rather than queued.

构造器摘要Constructor Summary

构造器Constructor说明Description
public TurnBusyException(String gateKey)
初始化 `TurnBusyException` 实例。
Creates an exception for the given gate key.

方法摘要Method Summary

方法Method说明Description
public String getGateKey()
获取 `getGateKey`。
Returns the gate key that could not be acquired.

构造器详情Constructor Detail

TurnBusyException

public TurnBusyException(String gateKey)

初始化 TurnBusyException 实例。

Creates an exception for the given gate key.

参数Parameters
名称Name类型Type说明Description
gateKeyStringgate 键(类型 `String`)。the canonical session gate key that is busy
源码Source io/agentscope/harness/agent/gateway/TurnBusyException.java:33–36

方法详情Method Detail

getGateKey

public String getGateKey()

获取 getGateKey。

Returns the gate key that could not be acquired.

返回Returns String
返回字符串结果。the busy gate key
源码Source io/agentscope/harness/agent/gateway/TurnBusyException.java:43–45
基于官方固定版本源码静态生成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.