AS AgentScopeAPI 手册 / API Reference
类class agentscope.exception

AgentOrientedException

class AgentOrientedException(Exception)
源码Source agentscope/exception/_base.py:5–18

智能体 Oriented 异常,表示执行过程中的错误。位于 agentscope.exception 包,继承自 Exception。

The base class for all agent-oriented exceptions. Declared in agentscope.exception. Extends Exception.

构造器摘要Constructor Summary

构造器Constructor说明Description
def __init__(message: str)
初始化 `AgentOrientedException` 实例。
Initialize the exception with a message.

方法摘要Method Summary

方法Method说明Description
def __str__() -> str
返回字符串表示。
Return the string representation of the exception.

构造器详情Constructor Detail

AgentOrientedException

def __init__(message: str)

初始化 AgentOrientedException 实例。

Initialize the exception with a message.

参数Parameters
名称Name类型Type说明Description
messagestr消息(类型 `str`)。The message.
源码Source agentscope/exception/_base.py:11–14

方法详情Method Detail

__str__

def __str__() -> str

返回字符串表示。

Return the string representation of the exception.

返回Returns str
返回字符串结果。Returns a string.
源码Source agentscope/exception/_base.py:16–18
基于官方固定版本源码静态生成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.