TaskModuleMessageResponse 类

包含消息操作的任务模块响应。

通过分析和验证关键字参数中的输入数据来创建新模型。

引发 [ValidationError][pydantic_core。如果无法验证输入数据以形成有效的模型,则 ValidationError]。

self 是显式位置仅允许 自己 作为字段名称。

构造函数

TaskModuleMessageResponse(*, type: Literal['message'] = 'message', value: str, **extra_data: Any)

仅限关键字的参数

名称 说明
type
默认值: message
value
必需

属性

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}

type

响应类型,此类始终为“message”。

type: Literal['message']

value

Teams 将在弹出消息框中显示值。

value: str