AS AgentScopeAPI 手册 / API Reference
包package agentscope.exception

agentscope.exception

module agentscope.exception

agentscope.exception 属于基础设施,类型、异常、传输与工具函数。 该包共收录 7 个公开类型。

The exception module in agentscope.

源码Source agentscope/exception/__init__.py:1

类Classes

AgentOrientedException
类class
智能体 Oriented 异常,表示执行过程中的错误。
The base class for all agent-oriented exceptions. These exceptions are expect to the captured and exposed to the agent during runtime, so that agents can handle the error appropriately during the runtime.
DeveloperOrientedException
类class
Developer Oriented 异常,表示执行过程中的错误。
The exception should be raised to the developers.
StructuredOutputError
类class
结构化输出错误,为框架提供通用类型与基础能力。
Raised when the model fails to produce a valid structured output, e.g. it does not call the structured-output tool, returns an empty response, or the returned arguments fail JSON/schema validation.
ToolGroupInactiveError
类class
工具组 Inactive 错误,为框架提供通用类型与基础能力。
Exception raised when a tool group is inactive.
ToolInterruptedError
类class
工具 Interrupted 错误,为框架提供通用类型与基础能力。
Exception raised when a tool calling was interrupted by the user.
ToolJSONDecodeError
类class
工具 JSON Decode 错误,为框架提供通用类型与基础能力。
Exception raised when tool arguments fail JSON decoding or repair.
ToolNotFoundError
类class
工具未找到错误,为框架提供通用类型与基础能力。
Exception raised when a tool was not found.
基于官方固定版本源码静态生成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.