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

# Get Evaluation Config

> Get agent configuration for Diamond evaluation.

Returns agent_url, agent_api_key, and agent_model_name needed for evaluation.
Requires agent:read permission (all team members) or
agent:read_all permission (super admin).



## OpenAPI

````yaml /openapi/api.json get /v1/agent-configurations/{id}/evaluation-config
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/agent-configurations/{id}/evaluation-config:
    get:
      tags:
        - Agent Environment
        - agent-configurations
      summary: Get Evaluation Config
      description: >-
        Get agent configuration for Diamond evaluation.


        Returns agent_url, agent_api_key, and agent_model_name needed for
        evaluation.

        Requires agent:read permission (all team members) or

        agent:read_all permission (super admin).
      operationId: get_evaluation_config_v1_agent_configurations__id__evaluation_config_get
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentEvaluationConfig'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AgentEvaluationConfig:
      properties:
        hub:
          type: string
          title: Hub
          description: Hub type for routing to correct SDK client
          default: custom
        protocol:
          $ref: '#/components/schemas/ProtocolType'
          description: Agent protocol; used when normalizing agent_url for evaluation.
          default: chat_completions
        agent_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Url
          description: >-
            Agent/LLM endpoint URL. Required for black box agents and custom hub
            grey/white box agents.
        agent_api_key:
          type: string
          title: Agent Api Key
        agent_model_name:
          type: string
          title: Agent Model Name
        agent_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Agent Name
          description: Human-readable name of the agent (for reports and display)
        rate_limit_requests_per_minute:
          type: integer
          minimum: 1
          title: Rate Limit Requests Per Minute
          description: Rate limit for API requests per minute
          default: 100
      type: object
      required:
        - agent_api_key
        - agent_model_name
      title: AgentEvaluationConfig
      description: >-
        Configuration for Diamond evaluation (resolved from agent).


        URL requirements depend on access level:

        - Black Box: agent_url is ALWAYS required (it's where the opaque agent
        lives)

        - Grey/White Box: agent_url is only required for non-standard hubs
        (custom LLM endpoints)


        For standard hubs (OpenAI, Anthropic, etc.) in grey/white box mode,

        the SDK uses default endpoints so no URL is needed.


        ``protocol`` is included in workflow params so the Diamond worker can
        normalize ``agent_url``

        (e.g. ``.../v1/`` for chat_completions) even when the stored workflow
        predates registry fixes.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ProtocolType:
      type: string
      enum:
        - chat_completions
        - a2a
      title: ProtocolType
      description: Communication protocol for agent endpoints.
    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

````