sdk-v2

Create Eval Case

Create a benchmark case (question + evaluation criteria at minimum).

post/v2/sdk/eval-cases

Request

  • Base URL: https://api.pandas-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pandas-ai.com/v2/sdk/eval-cases
  • Auth: none declared

Request body

suite_idstring nullable

Benchmark id (required on create, immutable on update)

questionstring required

Question to ask the agent

evaluation_criteriastring required

What a good answer must do (judged by the LLM judge)

labelsstring[]

Free-form case labels

gold_sqlstring nullable

Reference SQL for result comparison

orderedboolean

Compare results order-sensitively (query pins ORDER BY)

assertionsobject[]

Typed assertion specs, e.g. [{'type': 'max_turns', 'max': 4}]

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.