filter_ocel_attribute
Filter an object-centric event log (OCEL) by attribute values at event or object level, keeping or removing matching rows.
Instructions
Filter an OCEL by event or object attribute values.
level='event' dispatches to pm4py.filter_ocel_event_attribute;
level='object' dispatches to pm4py.filter_ocel_object_attribute.
retain=True keeps the matching rows, False drops them — this
maps to PM4Py's positive parameter.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ocel_id": "<ocel_id>",
"attribute": "<attribute>",
"values": "<values>"
},
"name": "filter_ocel_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | event | |
| retain | No | ||
| values | Yes | ||
| ocel_id | Yes | ||
| attribute | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||