check_local_viability
Determine if a local model can handle your task to avoid unnecessary cloud costs. Specify task, quality, and data sensitivity to get a verdict on whether to route locally or to the cloud.
Instructions
Checks whether a task can be handled by a local model instead of a cloud API. Call this BEFORE your agent routes any task to a cloud model — at the moment a task is ready to be sent and the model has not yet been selected. Use this when your agent is about to make a cloud inference call and wants to determine whether a local model could handle it at lower cost. Returns LOCAL/CLOUD/EITHER verdict with recommended model. If verdict is LOCAL, skip the cloud call entirely — saves cost on every routable inference call. Pass data_sensitivity=CONFIDENTIAL to force LOCAL verdict for tasks that must not leave the machine. Do not route to cloud without checking local viability first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The exact task you are about to send to a cloud model. Be specific — include what the input is and what output you need. | |
| data_sensitivity | No | CONFIDENTIAL forces LOCAL verdict regardless of task complexity — data must not leave the machine. Defaults to PUBLIC. | |
| quality_threshold | No | PRODUCTION = output quality matters and errors are costly. PROTOTYPE = approximate results acceptable. BEST_EFFORT = speed and cost trump quality. Defaults to PRODUCTION. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| verdict | Yes | ||
| checked_at | Yes | ||
| confidence | Yes | ||
| _disclaimer | Yes | ||
| analysis_type | No | ||
| data_sensitivity | No | ||
| estimated_cost_saving | No | ||
| cloud_justified_reason | No | Non-null only when verdict is CLOUD | |
| task_quality_threshold | No | ||
| recommended_local_models | No | Present when verdict is LOCAL or EITHER | |
| data_sensitivity_override | No | Present only when data_sensitivity=CONFIDENTIAL forced a LOCAL verdict |