authed

Changes a test made against its latest version. Renaming it or changing its note only updates the test; any other change saves a new version, which becomes the latest and, when edits_start_check is true, starts a check of it against the agent.

patch/api/v1/eval-cases/{case_id}

Request

  • Base URL
    https://api.teaflask.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.teaflask.com/api/v1/eval-cases/{case_id}
  • Auth
    none declared

Path parameters

case_idstring uuid required

The test's id, as list_tests returns it.

Request body

base_version_idstring uuid required

The version the edit was made on; it must still be the latest.

titlestring nullable

The test's new title.

notestring nullable

A member's note on the test; an empty note removes it.

summarystring nullable

The situation the conversation was about.

user_knowledgestring[] nullable

What the real user knew before the conversation; replaces the whole list.

original_outcome'succeeded' | 'failed'
outcome_reasonstring nullable

Why the original conversation succeeded or failed.

Response

Successful Response

idstring uuid required

The test's id.

agent_idstring uuid required

The agent the test belongs to.

conversation_idstring uuid required

The conversation the test came from.

conversation_titlestring required

That conversation's title.

titlestring required

The test's title; empty until it is written.

notestring nullable required

A member's note on the test.

status'authoring' | 'authored' | 'admitting' | 'repairing' | 'ready' | 'broken' | 'refused' | 'failed' required
status_reasonstring nullable required

A sentence saying why the test is where it is, when there's more to say.

status_retryableboolean required

Whether writing the test can be tried again.

created_by_user_idstring uuid nullable required

The member who added it.

created_atstring date-time required

When it was added.

updated_atstring date-time required

When it last changed.

revisions_seenstring[] required

Every agent revision that answered in the conversation.

admission_revision_idstring uuid nullable required

The agent revision that gave the conversation's last answer.

original_identifiedboolean required

Whether the conversation's user was signed in.

edits_start_checkboolean required

Whether saving an edit starts a paid check of the test.

Changes