v2

latestOpenAPI 3.1.02026-07-26143251806.6 KB
reports

Add Column to Evaluation Pipeline

post/report-columns

Request body

report_idinteger required

The ID of the evaluation pipeline to add this column to.

column_type'ABSOLUTE_NUMERIC_DISTANCE' | 'AI_DATA_EXTRACTION' | 'ASSERT_VALID' | 'CONVERSATION_SIMULATOR' | 'COALESCE' | 'CODE_EXECUTION' | 'COMBINE_COLUMNS' | 'COMPARE' | 'CONTAINS' | 'COSINE_SIMILARITY' | 'COUNT' | 'ENDPOINT' | 'MCP' | 'HUMAN' | 'JSON_PATH' | 'LLM_ASSERTION' | 'MATH_OPERATOR' | 'MIN_MAX' | 'PARSE_VALUE' | 'APPLY_DIFF' | 'PROMPT_TEMPLATE' | 'REGEX' | 'REGEX_EXTRACTION' | 'VARIABLE' | 'XML_PATH' | 'WORKFLOW' | 'CODING_AGENT' required

The type of evaluation or transformation this column performs. Must be one of the supported column types.

namestring required

Display name for this column. Must be unique within the pipeline. This name is used to reference the column in subsequent steps.

configurationobject required

Column-specific configuration. The schema varies based on column_type. See documentation for each type's requirements.

positioninteger nullable

Optional position for the column. If not specified, the column is added at the end. Cannot overwrite dataset columns.

Example request

{
  "report_id": 456,
  "column_type": "PROMPT_TEMPLATE",
  "name": "Generate Answer",
  "configuration": {
    "template": {
      "name": "qa_template",
      "version_number": null
    },
    "prompt_template_variable_mappings": {
      "question": "input_question"
    },
    "engine": {
      "provider": "openai",
      "model": "gpt-4",
      "parameters": {
        "temperature": 0.7
      }
    }
  }
}

Response

Column added successfully

successboolean
report_columnobject

Details of the created column including its ID and configuration

Example response

{
  "success": true
}