Plugins¶
OCELAnnotation ¶
Bases: Annotation
UI annotation metadata for an OCEL-typed parameter or result.
In addition to the base Annotation fields, this annotation may specify an OCEL extension. To keep the annotation JSON-serializable and stable for frontend consumption, the constructor accepts an OCELExtension class and coerces it to its class name (a string).
Attributes:
| Name | Type | Description |
|---|---|---|
label | str | Human-readable label to display in the UI. |
description | Optional[str] | Optional longer text shown in the UI to explain the OCEL. |
extension | Optional[str] | Optional extension identifier. If constructed with an |
Source code in src/ocelescope/src/ocelescope/plugin/decorators.py
ResourceAnnotation ¶
Bases: Annotation
UI annotation metadata for a Resource-typed parameter or result.
This annotation is used to provide frontend-facing text (label/description) for resources.
Attributes:
| Name | Type | Description |
|---|---|---|
label | str | Human-readable label to display in the UI. |
description | Optional[str] | Optional longer text shown in the UI to explain the resource. |
Source code in src/ocelescope/src/ocelescope/plugin/decorators.py
plugin_method ¶
Decorator that marks a plugin class method as an Ocelescope runnable function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
label | Optional[str] | Human-readable label shown in the UI for the method. If not provided, the UI may fall back to the Python method name. | None |
description | Optional[str] | Human-readable description shown in the UI for the method. | None |
Source code in src/ocelescope/src/ocelescope/plugin/decorators.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | |
OCEL_FIELD ¶
Create a Pydantic Field with Ocelescope UI metadata for OCEL-based inputs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
field_type | Literal['object_type', 'event_type', 'event_id', 'object_id', 'event_attribute', 'object_attribute', 'time_frame'] | What kind of OCEL field the user should select (e.g. | required |
ocel_id | str | Identifier/name of the OCEL input this field depends on. | required |
default | Any | Default value, or | ... |
title | Optional[str] | Optional UI title for the field. | None |
description | Optional[str] | Optional UI help text for the field. | None |
Source code in src/ocelescope/src/ocelescope/plugin/input.py
COMPUTED_SELECTION ¶
Create a Pydantic Field for a UI selection computed by a provider.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
title | Optional[str] | Optional UI title for the field. | None |
description | Optional[str] | Optional UI help text for the field. | None |
provider | str | The name (ID) of the provider function used by the frontend to compute the available options. | required |
depends_on | list[str] | None | Optional list of field names this selection depends on. | None |
default | Any | Default value, or | ... |