AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.channel

BindingStep

class BindingStep(BaseModel)
源码Source agentscope/app/channel/_credential_binding.py:48–78

绑定步骤,把智能体接入外部消息渠道与企业平台。位于 agentscope.app.channel 包。

What one call to a provider produced. Declared in agentscope.app.channel.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
stateBindingState
状态字段。
BindingState.PENDING
verification_urlstr
`verification_url` 字段。
''
credentialsdict[str, Any]
凭证字段。
Field(default_factory=dict)
errorstr
错误字段。
''
provider_statedict[str, Any]
提供者状态字段。
Field(default_factory=dict)
retry_after_secsint | None
`retry_after_secs` 字段。
None
expires_in_secsint
`expires_in_secs` 字段。
600

属性详情Attribute Detail

state

BindingState = BindingState.PENDING

状态字段。声明为 BindingState。

The state field.

源码Source agentscope/app/channel/_credential_binding.py:51

verification_url

str = ''

verification_url 字段。声明为 str。

The verification url field.

源码Source agentscope/app/channel/_credential_binding.py:54

credentials

dict[str, Any] = Field(default_factory=dict)

凭证字段。声明为 dict[str, Any]。

The credentials field.

源码Source agentscope/app/channel/_credential_binding.py:58

error

str = ''

错误字段。声明为 str。

The error field.

源码Source agentscope/app/channel/_credential_binding.py:62

provider_state

dict[str, Any] = Field(default_factory=dict)

提供者状态字段。声明为 dict[str, Any]。

The provider state field.

源码Source agentscope/app/channel/_credential_binding.py:65

retry_after_secs

int | None = None

retry_after_secs 字段。声明为 int | None。

The retry after secs field.

源码Source agentscope/app/channel/_credential_binding.py:70

expires_in_secs

int = 600

expires_in_secs 字段。声明为 int。

The expires in secs field.

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