get_learned_routing
Read what learned routing has learned for one of your routing policies: for each function the policy can choose, the calls seen, the success rate, the latency and rate the reward used, the expected reward with an interval, and the share of calls it would route there now. learning says whether it decides the policy's traffic; reason says why not: it is not released for your workspace, the policy has not turned it on, the policy's strategy is not one it can stand in for, or it is still collecting data, and meanwhile the policy's own strategy decides. Read only. Leave policy_id out for your default policy. Pass strategy instead to read what it learned for compute_price calls that name that strategy and turn learned routing on (no policy). Needs a Last Price credential with routing read scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | No | Instead of a policy: the strategy that compute_price calls named while turning learned routing on. | |
| policy_id | No | The routing policy UUID. Leave it out to read your workspace's default policy. |