jev_reask_plan
Builds a max-entropy re-ask plan from a posteriors sidecar by selecting the next unasked variable to query and returning the question queue and evidence.
Instructions
Build the max-entropy re-ask plan from a posteriors sidecar.
path selects the sidecar JSON file; graphspec_path optionally
supplies a dafjev.bayesnet/1 GraphSpec document to cross-check
the sidecar's variables and states against; asked lists
variables already asked (excluded from the plan).
Same policy as the daf-jev posteriors-reask CLI command
(:mod:daf_jev.reask): next variable = max entropy among
not-yet-asked posterior rows, ties broken by the sidecar's
insertion order. Only dafjev.bayesnet-posteriors/1 sidecars are
accepted. On success returns {next_question, entropy, queue, evidence}; when the document fails validation, returns
{error, message, ok: false} instead.
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": {
"path": "<path>"
},
"name": "jev_reask_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| asked | No | ||
| graphspec_path | No |