Predict Cost
predict_costEstimate token cost and latency for executing code by analyzing historical samples of similar call patterns.
Instructions
Predict the token cost and latency of executing code based on historical samples for similar call patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code whose cost you want to estimate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| estimatedInputTokens | Yes | ||
| estimatedOutputTokens | Yes | ||
| estimatedLatencyMs | Yes | ||
| basedOn | Yes | ||
| available | Yes |