cortex_run_eval
Run an evaluation to check if a workflow, run, or case meets your criteria like SLA or policy compliance. Provide target, criteria, and evidence to get a pass/fail job result.
Instructions
Convenience wrapper around cortex_run_job for job_kind="workflow_eval": checks whether a run/case/workflow met its criteria (e.g. SLA, policy compliance, action-item ownership). Returns the same job shape as cortex_run_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | JSON object of execution options. Keys: use_llm (boolean), create_surface_item (boolean), timeout_ms (number), dedupe_key (string). Example: {"use_llm":true,"create_surface_item":false} | |
| criteria | No | JSON object describing what the eval is optimizing for. Free-form per job_kind, but typical keys: optimize_for (string[]), constraints (string[]), pass_threshold (number 0..1). Example: {"optimize_for":["resolution_time"],"constraints":["do_not_expose_private_evidence"]} | |
| question | No | ||
| input_refs | No | JSON object of evidence references the runner may use. Optional keys: run_ids (string[]), case_ids (string[]), node_ids (string[]), chunk_ids (string[]), surface_item_ids (string[]). The platform ACL-filters these before prompt construction; refs the caller cannot access are dropped or the job is denied. Example: {"run_ids":["run_1"],"case_ids":["case_123"]} | |
| project_id | Yes | ||
| target_ref | Yes | ||
| target_type | Yes | ||
| input_payload | No | JSON object for inline target data. Required when target_type="external" (the target isn't a row in our DB). Example: {"workflow_name":"refund approval","steps":[]} |