AS AgentScopeAPI 手册 / API Reference

AguiException

public class AguiException extends RuntimeException
源码Source io/agentscope/core/agui/AguiException.java:21–72

AGUI 异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 RuntimeException。核心成员包括 AguiException。

Base exception for AG-UI related errors.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
AgentNotFoundException类class
智能体未找到异常,表示执行过程中的错误。
Exception thrown when an agent is not found in the registry.
EncodingException类class
Encoding 异常,表示执行过程中的错误。
Exception thrown when event encoding fails.

构造器摘要Constructor Summary

构造器Constructor说明Description
public AguiException(String message)
初始化 `AguiException` 实例。
Creates a new AguiException with the specified message.
public AguiException(String message, Throwable cause)
初始化 `AguiException` 实例。
Creates a new AguiException with the specified message and cause.

构造器详情Constructor Detail

AguiException

public AguiException(String message)

初始化 AguiException 实例。

Creates a new AguiException with the specified message.

参数Parameters
名称Name类型Type说明Description
messageString错误消息。The error message
源码Source io/agentscope/core/agui/AguiException.java:28–30

AguiException

public AguiException(String message, Throwable cause)

初始化 AguiException 实例。

Creates a new AguiException with the specified message and cause.

参数Parameters
名称Name类型Type说明Description
messageString错误消息。The error message
causeThrowablecause(类型 `Throwable`)。The underlying cause
源码Source io/agentscope/core/agui/AguiException.java:38–40

嵌套类详情Nested Class Detail

AgentNotFoundException

public static class AgentNotFoundException extends AguiException

智能体未找到异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 AguiException。核心成员包括 AgentNotFoundException。

Exception thrown when an agent is not found in the registry.

EncodingException

public static class EncodingException extends AguiException

Encoding 异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 AguiException。核心成员包括 EncodingException。

Exception thrown when event encoding fails.

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