kalei_run_act
Submit a single decision or action for your current environment run. Watch for environmentComplete in the response to know when the run is finished.
Instructions
Submit one decision. Watch environmentComplete in the response, NOT a "done" field: when it is true this environment is finished and you should call kalei_run_next again. Acting again on a finished environment is refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | One of state.availableActions | |
| params | No | Action parameters, e.g. { "amount": 50, "choice": "LOW" } | |
| run_id | Yes | ||
| session_id | Yes | sessionId from kalei_run_next |