test_function
Test-run one pricing function with sample data and see the price, explanation, confidence and alternatives it returns, without publishing it or touching live traffic. Your own draft functions can be tested here; a function that runs on a model provider can be tested only by its owner. Send context (for example the current price), constraints or options to override the sample. Needs a Last Price credential with function test scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Sample request context, for example the current price. Defaults to a current price of 29.99. | |
| options | No | Optional compute options for the test. | |
| constraints | No | Optional price limits for the test. | |
| function_id | Yes | The pricing function UUID: id on a list_functions result. |