hebbrix_choose_action
Choose and record an action for repeatable decisions before outcomes are known, then report results to optimize future recommendations.
Instructions
Choose and RECORD an action before its result is known.
Use for repeatable decisions whose real outcome can be reported later: reply
strategy, workflow, tool, prompt, recommendation, intervention, or plan.
policy_key identifies that decision type (for example support.reply).
actions are stable machine keys. context contains only factors that may
change which action works. The first action is the safe baseline unless
baseline_action is supplied. Only offer actions already authorized by the
host agent; learning optimizes among candidates and never grants permission.
Normal use: omit chosen_action; Hebbrix recommends conservatively. To log a
choice made elsewhere, pass chosen_action and its exact behavior-policy
action_probability (required with multiple actions). Set exploration_rate
to at most 0.2 only when controlled randomized learning is acceptable.
Keep the returned decision_id, perform chosen_action_key, then call
hebbrix_report_outcome when the real result arrives—even minutes or days
later. Missing outcomes are censored, never counted as failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | ||
| context | No | ||
| user_id | No | ||
| policy_key | Yes | ||
| chosen_action | No | ||
| collection_id | No | ||
| baseline_action | No | ||
| idempotency_key | No | ||
| exploration_rate | No | ||
| action_probability | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||