包package
agentscope.exceptionagentscope.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. |