CoreActivity Class
Core activity fields that all transports need to know about. Extensible for protocol-specific fields via extra="allow".
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
CoreActivity(*, service_url: str | None = None, id: str | None = None, type: str | None = None, **extra_data: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
service_url
|
Default value: None
|
|
id
|
Default value: None
|
|
type
|
Default value: None
|
Attributes
id
Activity ID for correlation
id: str | None
model_config
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
service_url
Service URL for routing
service_url: str | None
type
Activity type for basic routing
type: str | None