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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Optional WeightProfile override; defaults to DEFAULT_WEIGHT_PROFILE | |
| providers | Yes | Per-provider billing records |