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

# Add evaluation questions

> Add one or more questions your agent should answer during evaluation. Each question can include an optional expected answer.



## OpenAPI

````yaml post /api/agents/{id}/test-prompts
openapi: 3.0.3
info:
  title: Rippletide Agent Evaluation API
  description: >-
    Public API for evaluation agents, test prompts, test results, and knowledge
    imports
  version: 1.0.0
  contact:
    name: Rippletide API Support
servers:
  - url: https://agent-evalserver-production.up.railway.app
    description: Production server
  - url: http://localhost:3001
    description: Development server
security: []
paths:
  /api/agents/{id}/test-prompts:
    post:
      tags:
        - Test Prompts
      summary: Add evaluation questions
      description: >-
        Add one or more questions your agent should answer during evaluation.
        Each question can include an optional expected answer.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Evaluation agent ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTestPromptRequest'
            examples:
              prompts:
                summary: Add evaluation questions
                value:
                  prompts:
                    - prompt: What is your refund policy?
                      expectedAnswer: Customers can request a refund within 30 days.
                    - prompt: How can customers contact support?
                      expectedAnswer: Customers can contact support by email or chat.
      responses:
        '201':
          description: Test prompts created
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TestPrompt'
              examples:
                created:
                  summary: Created prompts
                  value:
                    - id: 42
                      prompt: What is your refund policy?
                      expectedAnswer: Customers can request a refund within 30 days.
                      testAnswer: null
                      created_at: '2026-06-02T15:10:00Z'
                      updated_at: '2026-06-02T15:10:00Z'
                    - id: 43
                      prompt: How can customers contact support?
                      expectedAnswer: Customers can contact support by email or chat.
                      testAnswer: null
                      created_at: '2026-06-02T15:10:00Z'
                      updated_at: '2026-06-02T15:10:00Z'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Agent not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreateTestPromptRequest:
      type: object
      description: Create one or more prompts to evaluate against an agent.
      properties:
        prompts:
          type: array
          description: Prompts to add to the evaluation suite.
          items:
            type: object
            required:
              - prompt
            properties:
              prompt:
                type: string
                description: Question or task sent to the evaluated agent.
                example: What is your refund policy?
              expectedAnswer:
                type: string
                nullable: true
                description: Optional answer used as the reference for evaluation.
                example: Customers can request a refund within 30 days.
      required:
        - prompts
    TestPrompt:
      type: object
      description: >-
        Question and optional expected answer used to evaluate an agent
        response.
      properties:
        id:
          type: integer
          description: >-
            Numeric prompt identifier. Use this ID when submitting a result for
            the prompt.
          example: 42
        prompt:
          type: string
          description: Question or task sent to the evaluated agent.
          example: What is your refund policy?
        expectedAnswer:
          type: string
          nullable: true
          description: Optional answer used as the reference for evaluation.
          example: Customers can request a refund within 30 days.
        testAnswer:
          type: string
          nullable: true
          description: Latest answer captured for this prompt, when available.
          example: Customers can request a refund within 30 days of purchase.
        created_at:
          type: string
          format: date-time
          description: Creation timestamp.
          example: '2026-06-02T15:10:00Z'
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp.
          example: '2026-06-02T15:12:00Z'
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: string
          nullable: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Platform API key for authenticated account-level API access

````