Evals

Update Eval

Updates an eval and returns the saved version. Omitted fields retain their existing values. Use the eval field to update its eval configuration.

patch/v1/api-performance/custom-evals/{custom_eval_id}

Request

  • Base URL
    https://api.lightsage.com
  • Auth
    API key in header X-Lightsage-Api-Key

Path parameters

custom_eval_idstring required

Request body

promptstring
prompt_templatestring

Rendered into prompt before storing. Variables: {{company_name}}, {{company_domain}}.

category_namestring
descriptionstring

Display description for the eval. Judging criteria belong in eval.graders.

tagstring
personastring

Persona whose workflow or perspective this eval represents.

competitorstring

Competitor ID; renders the prompt against that competitor.

prompt_competitor_groupstring

Base eval ID this competitor variant belongs to.

Response

Successful Response

idstring required
promptstring required

Rendered from prompt_template when one is set.

prompt_templatestring nullable

Variables: {{company_name}}, {{company_domain}}.

descriptionstring nullable

Display description for the eval; it does not affect grading.

tagstring nullable
personastring nullable

Persona whose workflow or perspective this eval represents.

competitorstring nullable

Null unless this is a competitor variant.

prompt_competitorstring nullable
prompt_competitor_groupstring nullable

Base eval of this variant; null on the base itself.

categoryobject nullable

Carries id, name, and slug.

created_atstring nullable
updated_atstring nullable

Changes

No operation changes recorded.