类class
agentscope.typesErrorType
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:25PERMISSION
= 'permission'权限字段。
The PERMISSION field.
源码Source
agentscope/types/_reply.py:27RATE_LIMIT
= 'rate_limit'速率限制字段。
The RATE LIMIT field.
源码Source
agentscope/types/_reply.py:29INVALID_REQUEST
= 'invalid_request'无效请求字段。
The INVALID REQUEST field.
源码Source
agentscope/types/_reply.py:31UPSTREAM
= 'upstream'上游字段。
The UPSTREAM field.
源码Source
agentscope/types/_reply.py:33CONNECTION
= 'connection'连接字段。
The CONNECTION field.
源码Source
agentscope/types/_reply.py:35INTERNAL
= 'internal'内部字段。
The INTERNAL field.
源码Source
agentscope/types/_reply.py:37SETUP
= 'setup'SETUP字段。
The SETUP field.
源码Source
agentscope/types/_reply.py:39UNKNOWN
= 'unknown'UNKNOWN字段。
The UNKNOWN field.
源码Source
agentscope/types/_reply.py:42