Decision Memory

Log a decision

Record a decision that was made. Link it to a simulation run_id to bind the full DecisionPlan context. Call PATCH /outcome later to close the loop.

post/v1/decisions

Request

  • Base URL: https://api.algenta.ai
  • URL: https://api.algenta.ai/v1/decisions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Request body

run_idstring uuid nullable

ID of the simulation run that produced this decision (links DecisionPlan -> DecisionLog).

contextstring nullable

Free-text description of the business situation when this decision was made.

chosen_actionstring required

The action that was chosen.

options_consideredstring[] nullable

All option names that were evaluated before choosing.

expected_valuenumber nullable
confidencenumber nullable
rationalestring nullable
risk_p5number nullable
risk_p95number nullable
risk_polnumber nullable

Probability of loss at decision time

request_hashstring nullable
result_hashstring nullable

Response

Successful Response

idstring uuid required
org_idstring uuid required
run_idstring uuid nullable required
contextstring nullable required
chosen_actionstring required
options_consideredstring[] nullable required
expected_valuenumber nullable required
confidencenumber nullable required
rationalestring nullable required
risk_p5number nullable required
risk_p95number nullable required
risk_polnumber nullable required
request_hashstring nullable required
result_hashstring nullable required
policy_snapshot_idstring nullable required
schema_snapshot_idstring nullable required
manifest_versionstring nullable required
actual_outcomenumber nullable required
outcome_deltanumber nullable required
outcome_notesstring nullable required
outcome_recorded_atstring date-time nullable required
executed_atstring date-time nullable required
execution_statusstring nullable required
execution_webhook_urlstring nullable required
execution_response_codeinteger nullable required
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.