> ## 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.

# Trigger Evolution

> Trigger evolution for an agent.

Sends the agent's configuration/identifiers to Darwin to start an
evolution job. Optional config overrides (sample_size, target_dimensions,
etc.) are forwarded to Darwin when provided.
Returns 201 Created with a Location header for the new job resource.



## OpenAPI

````yaml /openapi/api.json post /v1/agents/{agent_id}/evolutions
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/agents/{agent_id}/evolutions:
    post:
      tags:
        - Agent Environment
        - evolution
      summary: Trigger Evolution
      description: >-
        Trigger evolution for an agent.


        Sends the agent's configuration/identifiers to Darwin to start an

        evolution job. Optional config overrides (sample_size,
        target_dimensions,

        etc.) are forwarded to Darwin when provided.

        Returns 201 Created with a Location header for the new job resource.
      operationId: trigger_evolution_v1_agents__agent_id__evolutions_post
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Agent Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/TriggerEvolutionRequest'
                - type: 'null'
              title: Body
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EvolutionJob'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TriggerEvolutionRequest:
      properties:
        sample_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sample Size
        min_improvement_threshold:
          anyOf:
            - type: number
            - type: 'null'
          title: Min Improvement Threshold
        target_dimensions:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Target Dimensions
        max_probes_per_evaluation:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Probes Per Evaluation
        probe_concurrency:
          anyOf:
            - type: integer
            - type: 'null'
          title: Probe Concurrency
        reflection_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Reflection Model
        mutation_strategy:
          anyOf:
            - type: string
            - type: 'null'
          title: Mutation Strategy
        gepa_max_metric_calls:
          anyOf:
            - type: integer
            - type: 'null'
          title: Gepa Max Metric Calls
        detection_volume_threshold:
          anyOf:
            - type: integer
            - type: 'null'
          title: Detection Volume Threshold
      type: object
      title: TriggerEvolutionRequest
      description: Optional config overrides for evolution trigger.
    EvolutionJob:
      properties:
        evolution_id:
          type: string
          title: Evolution Id
        status:
          type: string
          title: Status
        agent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        extra:
          additionalProperties: true
          type: object
          title: Extra
          default: {}
      type: object
      required:
        - evolution_id
        - status
      title: EvolutionJob
      description: Console-side view of a Darwin evolution job.
    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

````