discover_petri_net
Mine a Petri net from an event log using inductive, heuristics, or alpha algorithm. Optionally prune infrequent behavior with a noise threshold.
Instructions
Discover a Petri net from an event log.
algorithm dispatches to one of three PM4Py miners:
"inductive"(default) — Inductive Miner, sound-by-construction. Acceptsnoise_thresholdin [0, 1] to prune infrequent behavior."heuristics"— Heuristics Miner, robust to noise."alpha"— classical Alpha Miner.
Returns a handle to the (net, initial_marking, final_marking) triple
plus structural counts. The model is stored with kind petri_net.
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": {
"log_id": "<log_id>"
},
"name": "discover_petri_net"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_id | Yes | ||
| algorithm | No | inductive | |
| noise_threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||