DecisionIntake
v1.1.0Research preview: US benefits screening that picks the next question and says when it can't tell.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_intake Start a benefits screening
Open a new benefits-screening intake. Returns the first `state` (pass it to every later call), the fifteen programmes, every question the engine can use (ids, options, amount units), and the first step.
record_facts Record what the person said
Record what the person said as typed facts (any questions, asked or volunteered; a fact for an answered question replaces it). Returns how each fact was read and the next step. Returns the new `state`; use it from now on. With an empty facts list it only returns the next step.
| Parameter | Type | Description |
|---|---|---|
facts * | array | |
state * | string | the state string from the most recent result, exactly as given |
already | array | programme ids the person says the household already gets (snap, medicaid, wic, ...); the whole list each time, replacing any earlier one. SNAP sharpens every other estimate (D51). |
get_assessment Current assessment
The current assessment: every programme's probability, tier and yearly value range, the facts recorded so far, the expected cost of mistakes, and a plan: the recommended programmes in the order to apply, with the federal rules linking them, each cited. A screening estimate, not an eligibility decision.
| Parameter | Type | Description |
|---|---|---|
state * | string | the state string from the most recent result, exactly as given |
what_would_change What would change the result
For each programme near the line: which single answer, one step different (one bracket of income, the other yes/no), would change its result, and to what. Use it to tell the person what to re-check if their situation changes; never to suggest what they should report.
| Parameter | Type | Description |
|---|---|---|
state * | string | the state string from the most recent result, exactly as given |