BaseTaskModuleTaskInfo 类

任务模块任务信息的基类。

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

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

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

构造函数

BaseTaskModuleTaskInfo(*, title: str | None = None, height: int | Literal['small', 'medium', 'large'] | None = None, width: int | Literal['small', 'medium', 'large'] | None = None, fallbackUrl: str | None = None, completionBotId: str | None = None, **extra_data: Any)

仅限关键字的参数

名称 说明
title
默认值: None
height
默认值: None
width
默认值: None
fallbackUrl
默认值: None
completionBotId
默认值: None

属性

completion_bot_id

如果客户端不支持任务模块功能,则此 URL 将在浏览器中打开。

completion_bot_id: str | None

fallback_url

如果客户端不支持任务模块功能,则此 URL 将在浏览器中打开。

fallback_url: str | None

height

可以是数字(像素)或字符串(“small”、“medium”、“large”)。

height: int | Literal['small', 'medium', 'large'] | 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}

title

显示在应用名称和应用图标右侧下方。

title: str | None

width

可以是数字(像素)或字符串(“small”、“medium”、“large”)。

width: int | Literal['small', 'medium', 'large'] | None