Compute Compute Axis Weights
aps_compute_compute_axis_weightsCompute normalized C-axis weight shares from provider prompt and completion token billing records for attribution inputs.
Instructions
Compute the C-axis fractional weight vector from a list of inference billing records (prompt_tokens, completion_tokens). Returns canonical ComputeAxisEntry[] with 6-digit decimal compute_share strings that sum to ~1.0 and feed directly into aps_construct_attribution_primitive. Weights = prompt_tokens + completion_tokens × COMPLETION_MULTIPLIER (default 3.0), then normalized. Parameter names match the SDK: providers, optional profile.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"providers": "<providers>"
},
"name": "aps_compute_compute_axis_weights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Optional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE | |
| providers | Yes | Per-provider billing records |