hololinked.metadata.td.interaction_affordance.EventAffordance
Bases: InteractionAffordance, EventMetadata
creates event affordance schema from events.
Source code in repo/hololinked/hololinked/metadata/td/interaction_affordance.py
Attributes
event_unique_identifier
property
Identifier this event is published under, as <thing id>/<name>.
Functions
to_descriptor
Create the Event this affordance describes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
name of the validator, registered with |
'pydantic'
|
Returns:
| Type | Description |
|---|---|
Event
|
the descriptor, not yet assigned to a class |
Source code in repo/hololinked/hololinked/metadata/td/interaction_affordance.py
| field | supported | meaning | default usage |
|---|---|---|---|
| subscription | ✔️ | schema of the input required to invoke action | input_schema value of action decorator |
| data | ✔️ | schema of the output returned by the action | output_schema value of action decorator |