> ## Documentation Index
> Fetch the complete documentation index at: https://docs.calibrate.artpark.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update evaluator trace variables

> Choose which part of a trace fills each variable of an evaluator



## OpenAPI

````yaml /api-reference/openapi.json put /agents/{agent_uuid}/evaluators/{evaluator_uuid}/trace-variables
openapi: 3.1.0
info:
  title: Calibrate Public API
  version: 0.1.0
  description: Programmatic API for CI/automation. Pass your key in the `X-API-Key` header.
servers:
  - url: https://api.calibrate.artpark.ai
    description: Production
security: []
paths:
  /agents/{agent_uuid}/evaluators/{evaluator_uuid}/trace-variables:
    put:
      tags:
        - agents
      summary: Update evaluator trace variables
      description: Choose which part of a trace fills each variable of an evaluator
      operationId: >-
        update_evaluator_trace_variables_agents__agent_uuid__evaluators__evaluator_uuid__trace_variables_put
      parameters:
        - name: agent_uuid
          in: path
          required: true
          schema:
            type: string
            description: The agent the evaluator is linked to
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Agent Uuid
          description: The agent the evaluator is linked to
        - name: evaluator_uuid
          in: path
          required: true
          schema:
            type: string
            description: The evaluator whose variables to fill
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Evaluator Uuid
          description: The evaluator whose variables to fill
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TraceVariablesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceVariablesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    TraceVariablesRequest:
      properties:
        trace_variables:
          additionalProperties:
            type: string
          type: object
          description: >-
            Which part of a trace fills each variable, keyed by variable name.
            Each value is one of:


            - `input`: the trace's input

            - `output.response`: the agent's reply

            - `output.tool_calls`: the tool calls the agent issued

            - `labels`: the trace's labels

            - `conversation_id`: the conversation ID sent with the trace

            - `message_id`: the message ID sent with the trace

            - `feedback.comment`: the comment given by the user along with the
            feedback for the trace

            - `metadata.<key>`: the metadata entry with that key


            Every variable needs a value. Replaces the stored choices, and an
            empty object clears them
          examples:
            - ai_reply: output.response
              nurse_reply: metadata.expert_answer
      type: object
      required:
        - trace_variables
      title: TraceVariablesRequest
    TraceVariablesResponse:
      properties:
        trace_variables:
          additionalProperties:
            type: string
          type: object
          description: Which part of a trace fills each variable
      type: object
      required:
        - trace_variables
      title: TraceVariablesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.