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

# List tests for agent

> List the tests linked to an agent.



## OpenAPI

````yaml /api-reference/openapi.json get /agent-tests/agent/{agent_uuid}/tests
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:
  /agent-tests/agent/{agent_uuid}/tests:
    get:
      tags:
        - agent-tests
      summary: List tests for agent
      description: List the tests linked to an agent.
      operationId: get_agent_tests_endpoint_agent_tests_agent__agent_uuid__tests_get
      parameters:
        - name: agent_uuid
          in: path
          required: true
          schema:
            type: string
            description: Agent whose linked tests to list
            examples:
              - f47ac10b-58cc-4372-a567-0e02b2c3d479
            title: Agent Uuid
          description: Agent whose linked tests to list
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Case-insensitive substring search on `name`. Blank is a no-op
            title: Q
          description: Case-insensitive substring search on `name`. Blank is a no-op
        - name: limit
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                maximum: 1000000
                minimum: 1
              - type: 'null'
            description: Maximum number of items to return. Omit for no limit (all items)
            title: Limit
          description: Maximum number of items to return. Omit for no limit (all items)
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of items to skip before returning results
            default: 0
            title: Offset
          description: Number of items to skip before returning results
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_TestListResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedResponse_TestListResponse_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TestListResponse'
          type: array
          title: Items
          description: The page of results
        total:
          type: integer
          title: Total
          description: Total number of items matching the query, before pagination
        limit:
          anyOf:
            - type: integer
            - type: 'null'
          title: Limit
          description: The applied `limit` (null when unbounded)
        offset:
          type: integer
          title: Offset
          description: The applied `offset`
          default: 0
      type: object
      required:
        - items
        - total
      title: PaginatedResponse[TestListResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TestListResponse:
      properties:
        uuid:
          type: string
          maxLength: 36
          minLength: 36
          title: Uuid
          description: Unique ID for the test
          examples:
            - b1c2d3e4-f5a6-7890-bcde-f12345678901
        name:
          type: string
          title: Name
          description: Name of the test
        type:
          type: string
          enum:
            - response
            - tool_call
            - conversation
          title: Type
          description: |
            What the test judges:

            - `response`: judges the generated reply
            - `tool_call`: diffs the generated tool calls
            - `conversation`: judges the full conversation
        config:
          anyOf:
            - $ref: '#/components/schemas/TestListConfig'
            - type: 'null'
          description: >-
            Trimmed config carrying only the test's description. Fetch the test
            by ID for the full config and evaluators
        created_at:
          type: string
          title: Created At
          description: When the test was created (ISO 8601 UTC)
        updated_at:
          type: string
          title: Updated At
          description: When the test was last updated (ISO 8601 UTC)
      type: object
      required:
        - uuid
        - name
        - type
        - created_at
        - updated_at
      title: TestListResponse
      description: >-
        Trimmed test shape for list/index endpoints. The full config and
        hydrated

        evaluators live on the detail endpoint (`GET /tests/{uuid}`); the list
        keeps

        only what list and attach-dropdown views render.
    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
    TestListConfig:
      properties:
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Short description of the test, shown in list views and searched on
      type: object
      title: TestListConfig
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````