AdaptiveCardInvokeAction Class

Defines the structure that arrives in the Activity.Value.Action for Invoke activity with Name of 'adaptiveCard/action'.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

AdaptiveCardInvokeAction(*, type: Literal['Action.Execute', 'Action.Submit'], id: str | None = None, verb: str | None = None, data: Dict[str, Any], **extra_data: Any)

Keyword-Only Parameters

Name Description
type
Required
id
Default value: None
verb
Default value: None
data
Required

Attributes

data

The data of this adaptive card action invoke.

data: Dict[str, Any]

id

The id of this Adaptive Card Invoke Action.

id: str | None

model_config

Configuration for the model, should be a dictionary conforming to [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

The Type of this Adaptive Card Invoke Action.

type: Literal['Action.Execute', 'Action.Submit']

verb

The verb of this adaptive card action invoke.

verb: str | None