build_context
Builds a compact, task-specific context under a token budget by combining stored and inline records; returns rendered context with provenance, omissions, and a reproducible optimization report.
Instructions
Construct a compact, task-specific context under a token budget. Combines stored records with any inline records; returns the rendered context plus provenance, omissions and a reproducible optimization report. Token counts are estimates unless a custom estimator is configured server-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The current task description. | |
| query | No | Additional relevance terms. | |
| records | No | Optional inline records to include in addition to stored records. | |
| tokenBudget | No | Override the server token budget. |