类class
agentscope.app.channelBindingStep
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 |
|---|---|---|---|
state | BindingState | 状态字段。 | BindingState.PENDING |
verification_url | str | `verification_url` 字段。 | '' |
credentials | dict[str, Any] | 凭证字段。 | Field(default_factory=dict) |
error | str | 错误字段。 | '' |
provider_state | dict[str, Any] | 提供者状态字段。 | Field(default_factory=dict) |
retry_after_secs | int | None | `retry_after_secs` 字段。 | None |
expires_in_secs | int | `expires_in_secs` 字段。 | 600 |
属性详情Attribute Detail
state
BindingState = BindingState.PENDING状态字段。声明为 BindingState。
The state field.
源码Source
agentscope/app/channel/_credential_binding.py:51verification_url
str = ''verification_url 字段。声明为 str。
The verification url field.
源码Source
agentscope/app/channel/_credential_binding.py:54credentials
dict[str, Any] = Field(default_factory=dict)凭证字段。声明为 dict[str, Any]。
The credentials field.
源码Source
agentscope/app/channel/_credential_binding.py:58error
str = ''错误字段。声明为 str。
The error field.
源码Source
agentscope/app/channel/_credential_binding.py:62provider_state
dict[str, Any] = Field(default_factory=dict)提供者状态字段。声明为 dict[str, Any]。
The provider state field.
源码Source
agentscope/app/channel/_credential_binding.py:65retry_after_secs
int | None = Noneretry_after_secs 字段。声明为 int | None。
The retry after secs field.
源码Source
agentscope/app/channel/_credential_binding.py:70expires_in_secs
int = 600expires_in_secs 字段。声明为 int。
The expires in secs field.
源码Source
agentscope/app/channel/_credential_binding.py:77