ChannelData 类
特定于Microsoft Teams中接收的消息的通道数据
通过分析和验证关键字参数中的输入数据来创建新模型。
引发 [ValidationError][pydantic_core。如果无法验证输入数据以形成有效的模型,则 ValidationError]。
self 是显式位置仅允许 自己 作为字段名称。
构造函数
ChannelData(*, channel: ChannelInfo | None = None, eventType: str | None = None, team: TeamInfo | None = None, notification: NotificationInfo | None = None, tenant: TenantInfo | None = None, meeting: MeetingInfo | None = None, settings: ChannelDataSettings | None = None, feedbackLoopEnabled: bool | None = None, feedbackLoop: FeedbackLoop | None = None, streamId: str | None = None, streamType: Literal['informative', 'streaming', 'final'] | None = None, streamSequence: int | None = None, **extra_data: Any)
仅限关键字的参数
| 名称 | 说明 |
|---|---|
|
channel
|
默认值: None
|
|
eventType
|
默认值: None
|
|
team
|
默认值: None
|
|
notification
|
默认值: None
|
|
tenant
|
默认值: None
|
|
meeting
|
默认值: None
|
|
settings
|
默认值: None
|
|
feedbackLoopEnabled
|
默认值: None
|
|
feedbackLoop
|
默认值: None
|
|
streamId
|
默认值: None
|
|
streamType
|
默认值: None
|
|
streamSequence
|
默认值: None
|
方法
| normalize_feedback |
规范化反馈循环配置。 这是必需的,因为客户端只接受/或。 |
normalize_feedback
规范化反馈循环配置。 这是必需的,因为客户端只接受/或。
normalize_feedback() -> Self
属性
channel
有关发送消息的通道的信息。
channel: ChannelInfo | None
event_type
事件类型。
event_type: str | None
feedback_loop
反馈循环配置。 将类型设置为“custom”以显示任务模块对话框。 对于标准反馈处理,则设置为“default”。
feedback_loop: FeedbackLoop | None
feedback_loop_enabled
旧反馈循环标志。 将此设置为 True 等效于 feedback_loop=FeedbackLoop(type=“default”)。 建议直接使用feedback_loop。 此字段在创建模型时规范化。
feedback_loop_enabled: bool | None
meeting
有关在其中发送消息的租户的信息。
meeting: MeetingInfo | None
model_config
模型的配置应为符合 [ConfigDict][pydantic.config的字典。ConfigDict]。
model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True, 'validate_by_name': True}
notification
消息的通知设置。
notification: NotificationInfo | None
settings
有关发送消息的设置的信息。
settings: ChannelDataSettings | None
stream_id
流的 ID。 在发送初始更新后分配。
stream_id: str | None
stream_sequence
流中消息的序列号。 从第一条消息的 1 开始,并从那里递增。
stream_sequence: int | None
stream_type
要发送的消息的类型。
stream_type: Literal['informative', 'streaming', 'final'] | None
team
有关发送消息的团队的信息。
team: TeamInfo | None
tenant
有关在其中发送消息的租户的信息。
tenant: TenantInfo | None