Eval runs start Sapient evaluation work from the public API. Use them when you want to trigger prompt evals or API Performance evals from automation, then poll progress by eval run ID.Documentation Index
Fetch the complete documentation index at: https://usesapient.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Commands
| Command | Description |
|---|---|
sapient eval-runs create | Start a durable eval run. |
sapient eval-runs retrieve --eval-run-id <eval_run_id> | Retrieve status and progress for a durable eval run. |
Start a prompt eval run
Run selected Visibility prompts against configured prompt targets:prompt_ids, Sapient runs all active prompts. If you omit targets, Sapient uses your configured scheduled prompt targets.
Start an API Performance eval run
Run configured API Performance evals for a source:| Field | Description |
|---|---|
source_type | Source to run. Use rest_api, sdk, cli, or custom_evals. |
integration_id | Source integration ID for REST API, SDK, or CLI evals. |
targets | One-off text or coding-agent targets. Omit to use configured targets. |
models | Legacy flat model selection. Prefer targets. |
endpoint_ids | Optional endpoint filters. |
endpoint_paths | Optional METHOD:path filters, such as GET:/v1/items. |
env_profile_ids | Environment profiles to use for this run. |
Start a custom eval run
Run one or more custom evals:custom_eval_ids, Sapient uses the custom evals configured for your organization.
Poll progress
The create response returns anid and job_id. Pass the id to retrieve progress:
pending, running, summarizing, completed, failed, cancelled, and interrupted.