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

ErrorType

class ErrorType(StrEnum)
源码Source agentscope/types/_reply.py:19–43

错误类型,为框架提供通用类型与基础能力。位于 agentscope.types 包,继承自 StrEnum。

Not model-specific: the status-derived members apply to any upstream service reached during a reply (chat model, embedding, TTS, MCP).

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
AUTHENTICATION—
AUTHENTICATION字段。
'authentication'
PERMISSION—
权限字段。
'permission'
RATE_LIMIT—
速率限制字段。
'rate_limit'
INVALID_REQUEST—
无效请求字段。
'invalid_request'
UPSTREAM—
上游字段。
'upstream'
CONNECTION—
连接字段。
'connection'
INTERNAL—
内部字段。
'internal'
SETUP—
SETUP字段。
'setup'
UNKNOWN—
UNKNOWN字段。
'unknown'

属性详情Attribute Detail

AUTHENTICATION

 = 'authentication'

AUTHENTICATION字段。

The AUTHENTICATION field.

源码Source agentscope/types/_reply.py:25

PERMISSION

 = 'permission'

权限字段。

The PERMISSION field.

源码Source agentscope/types/_reply.py:27

RATE_LIMIT

 = 'rate_limit'

速率限制字段。

The RATE LIMIT field.

源码Source agentscope/types/_reply.py:29

INVALID_REQUEST

 = 'invalid_request'

无效请求字段。

The INVALID REQUEST field.

源码Source agentscope/types/_reply.py:31

UPSTREAM

 = 'upstream'

上游字段。

The UPSTREAM field.

源码Source agentscope/types/_reply.py:33

CONNECTION

 = 'connection'

连接字段。

The CONNECTION field.

源码Source agentscope/types/_reply.py:35

INTERNAL

 = 'internal'

内部字段。

The INTERNAL field.

源码Source agentscope/types/_reply.py:37

SETUP

 = 'setup'

SETUP字段。

The SETUP field.

源码Source agentscope/types/_reply.py:39

UNKNOWN

 = 'unknown'

UNKNOWN字段。

The UNKNOWN field.

源码Source agentscope/types/_reply.py:42
基于官方固定版本源码静态生成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.