banditkeep
v0.1.0Decision memory for agents: bandit campaigns that learn which action works in which context.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_campaign
Create a new decision campaign. Accepts algorithm ("linucb" or "thompson_sampling"), alpha, and optional budgets for actions that cost something limited. Use Thompson Sampling for natural Bayesian exploration with no tuning needed.
| Parameter | Type | Description |
|---|---|---|
arms * | array | Array of string values for this parameter (optional). |
campaign_id * | string | Identifier of the campaign. |
algorithm | string | Algorithm to use. |
alpha | number | Alpha parameter for the algorithm. |
budgets | array | Budget allocation per arm. |
decay_half_life_hours | number | Decay half-life in hours. |
feature_dim | integer | Feature dimension size. |
features | array | Array of string values for this parameter (optional). |
metadata | object | Metadata for this call (optional). |
list_campaigns
List all active campaigns (shows algorithm and alpha) — useful to check what exists before calling get_intuition.
campaign_diagnostics
Inspect per-arm learning state: theta_norm, prediction counts, reward rates, and entropy health. Use when a campaign doesn't seem to be learning or one arm is dominating.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
campaign_report
Business-level convergence report. Tells you whether the campaign has statistically converged and which arm is winning with confidence intervals.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
get_intuition
Ask BanditDB which arm to pick for a given context. Optional exclude_arms / eligible_arms narrow the choice for this request only. Returns the arm and an interaction_id to save.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
context * | Context for the decision: an object of features or an array of values. | |
eligible_arms | array | Array of string values for this parameter (optional). |
exclude_arms | array | Array of string values for this parameter (optional). |
batch_get_intuition
Get decisions for multiple campaigns in a single round-trip. Pass a list of {campaign_id, context} dicts.
| Parameter | Type | Description |
|---|---|---|
predictions * | array | Predictions payload. |
record_outcome
Report whether the chosen action succeeded (1.0) or failed (0.0). Updates the shared model.
| Parameter | Type | Description |
|---|---|---|
interaction_id * | string | Identifier of the interaction. |
reward * | number | Reward value. |
archive_campaign
Soft-delete a campaign. Pauses predictions/rewards but preserves all learned weights.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
restore_campaign
Restore an archived campaign to active status with all weights intact.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
campaign_budget
Budget spend per resource: consumed, remaining, utilization, shadow price, exhaustion.
| Parameter | Type | Description |
|---|---|---|
campaign_id * | string | Identifier of the campaign. |
add_arm
Add an action to a live campaign, optionally warm-started from existing arms and with budget costs.
| Parameter | Type | Description |
|---|---|---|
arm_id * | string | The arm identifier for this call. |
campaign_id * | string | Identifier of the campaign. |
costs | object | Costs payload. |
group | string | Group identifier or name. |
warm_start | array | Array of string values for this parameter (optional). |
set_arm_status
Pause, retire, or reactivate an action. It keeps everything it learned.
| Parameter | Type | Description |
|---|---|---|
arm_id * | string | The arm identifier for this call. |
campaign_id * | string | Identifier of the campaign. |
status * | string | Status filter for this call. |