register_agent
Register a new agent in the budget system with priority and initial token budget. Call once per agent before recording spend or requesting reallocation to enable budget management.
Instructions
Register a new agent in the budget system with a priority weight and an initial token budget. Call this once per agent before recording spend or requesting reallocation for it. Priority is relative: higher priority agents can pull spare budget from equal-or-lower priority agents during reallocation, but budget never flows from a higher-priority agent to a lower-priority one. Re-registering an existing agent_id resets its contract and ledger entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Unique identifier for the agent, e.g. 'researcher' or 'writer'. | |
| priority | No | Relative importance; higher number = more important. During reallocation, this agent may only receive tokens from donor agents whose priority is <= this value. | |
| max_tokens | No | Initial token budget allocated to this agent. | |
| min_reserve | No | Minimum tokens this agent must always retain, even when it is eligible to donate during someone else's reallocation. Defaults to 10% of max_tokens if omitted. | |
| confidence_threshold | No | Optional 0-1 confidence threshold. Once a recorded spend for this agent reports a confidence at or above this value, further spend requests are blocked by the confidence gate. Omit to disable. |