---
updatedAt: 2026-05-25T14:02:05.000Z
agentTools:
  projectIndex: https://docs.d-id.com/llms.txt
---

# Update ElevenLabs agent

Update an ElevenLabs-backed agent.
Only agents created via the ElevenLabs integration endpoint can be updated here.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Realtime Endpoints",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://api.d-id.com/"
    }
  ],
  "paths": {
    "/v2/agents/integrations/elevenlabs/{id}": {
      "patch": {
        "operationId": "UpdateElevenLabsAgent",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "BadRequest",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "BadRequest",
                      "description": "Invalid request parameters"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "AuthorizationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "AuthorizationError",
                      "description": "user unauthenticated"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "NotFound",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "NotFound",
                      "description": "Agent not found"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "NotReadyError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "NotReadyError",
                      "description": "This agent is being built. Please try again in a minute or two."
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Update an ElevenLabs-backed agent.\nOnly agents created via the ElevenLabs integration endpoint can be updated here.",
        "summary": "Update ElevenLabs agent",
        "tags": [
          "Integrations"
        ],
        "security": [
          {
            "basic": []
          },
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "description": "Agent Id",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ElevenLabsAgentUpdateDto"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "JsonError": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "details": {},
          "internal": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "description"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ExternalUrl": {
        "type": "string",
        "example": "https://example.com",
        "description": "a valid url that starts with http or https with regex",
        "pattern": "^(?:http|https):\\/\\/[\\S]+$"
      },
      "Auth": {
        "properties": {
          "secret_id": {
            "type": "string"
          }
        },
        "required": [
          "secret_id"
        ],
        "type": "object",
        "nullable": true,
        "description": "Authentication configuration for tools and webhooks (processed/stored)",
        "title": "Authentication"
      },
      "Providers.Microsoft": {
        "enum": [
          "microsoft"
        ],
        "type": "string"
      },
      "VoiceConfigMicrosoft": {
        "properties": {
          "style": {
            "type": "string",
            "description": "The style of the voice.\nAvailable styles change between voices."
          },
          "rate": {
            "type": "string",
            "description": "The speed of the voice.\nThe value is relative to 1, 0.5 being half speed, 2 being twice as fast, etc.\nAnother option is a constant value from x-slow/slow/medium/fast/x-fast.\nNot supported for azure-openai voices, which reject it with a 400 error.",
            "example": "0.5"
          },
          "pitch": {
            "type": "string",
            "description": "The pitch of the voice.\nValue could be an absolute value in Hz (including units), a relative value in Hz or st(semitones)\nor a constant value from x-low/low/medium/high/x-high.",
            "example": "+2st"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Microsoft_tts_provider": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Providers.Microsoft"
          },
          "voice_id": {
            "type": "string",
            "description": "Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.",
            "example": "en-US-JennyNeural"
          },
          "voice_config": {
            "$ref": "#/components/schemas/VoiceConfigMicrosoft",
            "description": "Voice customization options"
          },
          "language": {
            "type": "string",
            "description": "Voice customization options. To save the language of the selected agent voice",
            "example": "English (United States)"
          }
        },
        "required": [
          "type",
          "voice_id"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "Microsoft"
      },
      "VoiceAccess": {
        "enum": [
          "public",
          "premium",
          "private",
          "external-private"
        ],
        "type": "string"
      },
      "Providers.Elevenlabs": {
        "enum": [
          "elevenlabs"
        ],
        "type": "string"
      },
      "VoiceConfigElevenlabs": {
        "properties": {
          "stability": {
            "type": "number",
            "format": "double",
            "description": "How stable the voice is and the randomness of each new generation.\nIf ElevenLabs V3 model is selected, must be one of these values: 0.0, 0.5, 1.0 (0.0 = Creative, 0.5 = Natural, 1.0 = Robust).",
            "example": "0",
            "minimum": 0,
            "maximum": 1
          },
          "similarity_boost": {
            "type": "number",
            "format": "double",
            "description": "The similarity slider dictates how closely the AI should adhere to the original voice when attempting to replicate it.",
            "example": "0",
            "minimum": 0,
            "maximum": 1
          },
          "rate": {
            "type": "string",
            "description": "The speed of the voice.\nThe value is relative to 1. Valid range is 0.7 to 1.2.",
            "example": "0.7",
            "pattern": "^(|0\\.[7-9][0-9]*|1(\\.[0-1][0-9]*|\\.2|\\.20*)?)$"
          },
          "style": {
            "type": "string",
            "description": "Determines the style exaggeration of the voice.\nThis setting attempts to amplify the style of the original speaker.\nIt does consume additional computational resources and might increase latency if set to anything other than 0.\nValid range is 0 to 1.",
            "example": "0.5",
            "pattern": "^(|0(\\.[0-9]+)?|1(\\.0+)?)$"
          },
          "use_speaker_boost": {
            "type": "boolean",
            "description": "boosts the similarity to the original speaker.\nUsing this setting requires a slightly higher computational load, which in turn increases latency.",
            "example": true
          },
          "apply_language_text_normalization": {
            "type": "boolean",
            "description": "Controls language text normalization. This helps with proper pronunciation of text in some supported languages.\nWARNING: This parameter can heavily increase the latency of the request. Currently only supported for Japanese.",
            "example": true
          },
          "apply_text_normalization": {
            "type": "string",
            "enum": [
              "auto",
              "on",
              "off"
            ],
            "description": "Controls text normalization on the ElevenLabs side (expanding numbers, abbreviations and symbols).\n'auto' lets ElevenLabs decide, 'on' forces normalization, 'off' disables it.\nDefaults to 'off' when not provided.",
            "example": "off"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Elevenlabs_stream_tts_provider": {
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Providers.Elevenlabs"
          },
          "voice_id": {
            "type": "string",
            "description": "Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.",
            "example": "21m00Tcm4TlvDq8ikWAM",
            "default": "21m00Tcm4TlvDq8ikWAM"
          },
          "voice_config": {
            "$ref": "#/components/schemas/VoiceConfigElevenlabs",
            "description": "Voice customization options. Read more here: https://docs.elevenlabs.io/speech-synthesis/voice-settings"
          },
          "model_id": {
            "type": "string",
            "description": "The model id from the list of available models. https://elevenlabs.io/docs/speech-synthesis/models.",
            "example": "eleven_flash_v2_5"
          },
          "language": {
            "type": "string",
            "description": "Voice customization options. To save the language of the selected voice",
            "example": "English (United States)"
          },
          "access": {
            "$ref": "#/components/schemas/VoiceAccess",
            "description": "The access level of the requested voice.\nUse `external-private` together with the `x-api-key-external` for your own ElevenLabs voices."
          }
        },
        "required": [
          "type"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "ElevenLabs"
      },
      "Providers.AzureOpenAi": {
        "enum": [
          "azure-openai"
        ],
        "type": "string"
      },
      "AzureOpenAi_tts_provider": {
        "properties": {
          "voice_id": {
            "type": "string",
            "description": "Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.",
            "example": "en-US-JennyNeural"
          },
          "voice_config": {
            "$ref": "#/components/schemas/VoiceConfigMicrosoft",
            "description": "Voice customization options"
          },
          "language": {
            "type": "string",
            "description": "Voice customization options. To save the language of the selected agent voice",
            "example": "English (United States)"
          },
          "type": {
            "$ref": "#/components/schemas/Providers.AzureOpenAi"
          }
        },
        "required": [
          "voice_id",
          "type"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "OpenAI"
      },
      "Providers.Cartesia": {
        "enum": [
          "cartesia"
        ],
        "type": "string"
      },
      "VoiceConfigCartesia": {
        "properties": {
          "rate": {
            "type": "string",
            "description": "The speed of the voice.\nThe value is relative to 1. Valid range is 0.6 to 1.5. Supported by the sonic-3 models.",
            "example": "1.2",
            "pattern": "^(|0\\.[6-9][0-9]*|1(\\.[0-4][0-9]*|\\.5|\\.50*)?)$"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "Cartesia_tts_provider": {
        "description": "Supported for expressive agents only. Read more: https://docs.d-id.com/reference/tts-cartesia",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Providers.Cartesia"
          },
          "voice_id": {
            "type": "string",
            "description": "Voice ID selected from the list of available voices.</br>Retrieve available options from the GET /voices endpoint.",
            "example": "694f9389-aac1-45b6-b726-9d9369183238"
          },
          "voice_config": {
            "$ref": "#/components/schemas/VoiceConfigCartesia",
            "description": "Voice customization options"
          },
          "model_id": {
            "type": "string",
            "description": "The model id from the list of available Cartesia models.",
            "example": "sonic-3"
          },
          "language": {
            "type": "string",
            "description": "The language of the selected voice, in ISO 639-1 (2-letter) format.",
            "example": "en"
          }
        },
        "required": [
          "type",
          "voice_id"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "Cartesia"
      },
      "AgentsTextToSpeechProviders": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Microsoft_tts_provider"
          },
          {
            "$ref": "#/components/schemas/Elevenlabs_stream_tts_provider"
          },
          {
            "$ref": "#/components/schemas/AzureOpenAi_tts_provider"
          },
          {
            "$ref": "#/components/schemas/Cartesia_tts_provider"
          }
        ]
      },
      "AgentVoice": {
        "allOf": [
          {
            "$ref": "#/components/schemas/AgentsTextToSpeechProviders"
          },
          {
            "properties": {
              "ssml": {
                "type": "boolean",
                "description": "When true, the agent's text is sent to the TTS provider as SSML without\nescaping (caller-authored SSML); otherwise special characters are escaped.\nOnly supported for Microsoft voices."
              }
            },
            "type": "object"
          }
        ]
      },
      "TalkAgentPresenter": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "talk"
            ],
            "nullable": false,
            "description": "Presenter type"
          },
          "voice": {
            "$ref": "#/components/schemas/AgentVoice",
            "description": "Voice provider for text-to-speech."
          },
          "source_url": {
            "type": "string",
            "description": "Image URL used to create the avatar."
          },
          "thumbnail": {
            "type": "string",
            "description": "Preview image URL for the avatar."
          },
          "stitch": {
            "type": "boolean",
            "description": "Controls the output framing.<br/>\n`true` - Original image framing\n`false` - Close-up framing"
          }
        },
        "required": [
          "type",
          "source_url",
          "thumbnail"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "Photo Avatar"
      },
      "PresenterBackground": {
        "properties": {
          "color": {
            "type": "string",
            "description": "Background color of the Avatar.",
            "example": "#47ffff",
            "pattern": "^#[a-fA-F0-9]{6}$"
          },
          "source_url": {
            "type": "string",
            "description": "Image URL used as the Avatar background.",
            "example": "https://path.to.image/"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "Background"
      },
      "ClipAgentPresenter": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "clip"
            ],
            "nullable": false,
            "description": "Presenter type"
          },
          "voice": {
            "$ref": "#/components/schemas/AgentVoice",
            "description": "Voice provider for text-to-speech."
          },
          "presenter_id": {
            "type": "string",
            "description": "ID of the video avatar used by the Agent. <br> Retrieved from the GET/ presenters endpoint."
          },
          "background": {
            "$ref": "#/components/schemas/PresenterBackground",
            "description": "presenter background config"
          }
        },
        "required": [
          "type",
          "presenter_id"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "Video Avatar"
      },
      "ExpressivePresenterBackground": {
        "properties": {
          "color": {
            "type": "string",
            "description": "Background color of the Avatar.",
            "example": "#47ffff",
            "pattern": "^#[a-fA-F0-9]{6}$"
          },
          "source_url": {
            "type": "string",
            "description": "Image URL used as the Avatar background.",
            "example": "https://path.to.image/"
          },
          "video_url": {
            "type": "string",
            "description": "Video URL used as a looping background behind the avatar. Up to 1GB.\nThe video is transcoded on save and this field is replaced with the result.",
            "example": "https://path.to.video/"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "ExpressiveViewMode": {
        "type": "string",
        "enum": [
          "standard",
          "medium",
          "close-up"
        ],
        "description": "The framings a request may set."
      },
      "StoredExpressiveViewMode": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/ExpressiveViewMode"
          }
        ],
        "description": "Every framing an agent may have stored, current or legacy."
      },
      "ExpressivePresenterVideoConfig": {
        "description": "How an expressive avatar's video is rendered.",
        "properties": {
          "smooth_edges": {
            "type": "boolean",
            "description": "Soften the avatar's matte edge in the idle video and in live frames. Defaults to true."
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "ExpressiveAgentPresenter": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "expressive"
            ],
            "nullable": false,
            "description": "Presenter type"
          },
          "voice": {
            "$ref": "#/components/schemas/AgentVoice",
            "description": "Voice provider for text-to-speech."
          },
          "presenter_id": {
            "type": "string",
            "description": "Id of avatar that will be shown for user",
            "example": "public_mia_elegant@avt_TJ0Tq5"
          },
          "background": {
            "$ref": "#/components/schemas/ExpressivePresenterBackground",
            "description": "presenter background config"
          },
          "view_mode": {
            "$ref": "#/components/schemas/StoredExpressiveViewMode",
            "description": "Camera framing for the agent's video: 'standard' keeps the full frame,\n'medium' and 'close-up' tighten it in that order. Includes the legacy\nframings, which agents saved before they were retired still carry.\nOptional and not defaulted: omitting it on update preserves the stored value\n(a `@default` here would make tsoa inject 'standard' and silently reset it).",
            "example": "close-up"
          },
          "video_config": {
            "$ref": "#/components/schemas/ExpressivePresenterVideoConfig",
            "description": "How the avatar's video is rendered. Changing it re-renders the agent's idle video."
          }
        },
        "required": [
          "type",
          "presenter_id"
        ],
        "type": "object",
        "additionalProperties": false,
        "title": "Expressive Avatar"
      },
      "AgentPresenter": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/TalkAgentPresenter"
          },
          {
            "$ref": "#/components/schemas/ClipAgentPresenter"
          },
          {
            "$ref": "#/components/schemas/ExpressiveAgentPresenter"
          }
        ]
      },
      "AgentsLLMModel": {
        "description": "OpenAI LLM models",
        "enum": [
          "gpt-4.1",
          "gpt-4.1-mini",
          "gpt-5.4-mini",
          "gpt-5.4-nano",
          "gpt-6-luna"
        ],
        "type": "string"
      },
      "AgentTemplate": {
        "type": "string",
        "enum": [
          "rag-grounded",
          "rag-ungrounded",
          "assistant"
        ]
      },
      "PromptCustomization": {
        "properties": {
          "role": {
            "type": "string",
            "description": "Role the Agent assumes when responding.",
            "example": "Salesperson"
          },
          "personality": {
            "type": "string",
            "description": "Personality traits reflected in the Agent’s responses."
          },
          "topics_to_avoid": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "List of topics the Agent should avoid discussing.",
            "example": [
              "Politics",
              "Religion"
            ]
          },
          "max_response_length": {
            "type": "number",
            "format": "double",
            "description": "Approximate maximum response length, in words.\nDefault: 75",
            "example": 75
          },
          "knowledge_source": {
            "type": "string",
            "enum": [
              "base_knowledge",
              "documents"
            ],
            "description": "Defines how the Agent receives knowledge.</br>\n- base_knowledge — Uses inline knowledge from prompt_knowledge\n- documents — Uses knowledge_id (RAG)\n(Default: documents)"
          },
          "prompt_knowledge": {
            "type": "string",
            "description": "Defines the factual knowledge the Agent uses to answer questions."
          },
          "expression_prompt": {
            "type": "boolean",
            "description": "Whether the Agent's replies drive the avatar's facial expressions. When enabled (default), the\nAgent is prompted to tag each reply with a sentiment that selects the avatar's expression. When\nfalse, the avatar keeps its default expression for the whole session. Expressive Avatar\npresenters only; it has no effect on any other presenter type.",
            "example": false
          },
          "default_speech_rules": {
            "type": "boolean",
            "description": "Whether the standard speech rules are added to the Agent's prompt: numbers, dates and prices\nread the way a person says them, no lists or bullet points because they only work on a page,\nand sentences short enough to say in one breath. Off unless you turn it on. Expressive Avatar\npresenters only; it has no effect on any other presenter type.",
            "example": true
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "Prompt"
      },
      "OpenAILLM": {
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "openai"
            ],
            "nullable": false,
            "description": "Large Language Model provider."
          },
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          },
          "model": {
            "$ref": "#/components/schemas/AgentsLLMModel",
            "description": "The model to use"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "OpenAI"
      },
      "GoogleLLMModel": {
        "description": "Google LLM models",
        "enum": [
          "gemini-2.5-flash",
          "gemini-2.5-flash-lite",
          "gemini-3-flash"
        ],
        "type": "string"
      },
      "GoogleLLM": {
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "google"
            ],
            "nullable": false,
            "description": "Large Language Model provider."
          },
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          },
          "model": {
            "$ref": "#/components/schemas/GoogleLLMModel",
            "description": "The model to use"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "Google"
      },
      "OpenAIExternalLLM": {
        "description": "OpenAI External LLM",
        "properties": {
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          },
          "secretId": {
            "type": "string",
            "description": "ID of the stored secret containing the external OpenAI API key"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "OpenAI External"
      },
      "AzureOpenAIExternalLLM": {
        "description": "Azure OpenAI External LLM",
        "properties": {
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          },
          "secretId": {
            "type": "string",
            "description": "ID of the stored secret containing the external OpenAI API key"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "Azure OpenAI External"
      },
      "DIdLLMModel": {
        "description": "D-ID LLM models",
        "enum": [
          "gpt-oss-120b"
        ],
        "type": "string"
      },
      "DIdLLM": {
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "d-id"
            ],
            "nullable": false,
            "description": "Large Language Model provider."
          },
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          },
          "model": {
            "$ref": "#/components/schemas/DIdLLMModel",
            "description": "The model to use"
          }
        },
        "type": "object",
        "additionalProperties": false,
        "title": "D-ID GPT OSS"
      },
      "AutoLLM": {
        "description": "Auto LLM — backend resolves the default provider and model.",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "auto"
            ],
            "nullable": false,
            "description": "Large Language Model provider."
          },
          "instructions": {
            "type": "string",
            "description": "Defines what the Agent does and how it should behave."
          },
          "template": {
            "$ref": "#/components/schemas/AgentTemplate",
            "description": "How the Agent uses knowledge when generating responses.\n- RAG-Grounded: Uses only provided knowledge\n- RAG-Ungrounded: Uses provided knowledge and general model knowledge\n- Assistant: Uses general model knowledge only"
          },
          "prompt_customization": {
            "$ref": "#/components/schemas/PromptCustomization",
            "description": "Advanced configuration for the language model."
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "description": "Controls how predictable or creative the Agent’s responses are.\nDefault values by template:\nRAG-Grounded: 0.1\nRAG-Ungrounded: 0.5\nAssistant: 0.5",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "provider"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "LLMConfig": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/OpenAILLM"
          },
          {
            "$ref": "#/components/schemas/GoogleLLM"
          },
          {
            "$ref": "#/components/schemas/OpenAIExternalLLM"
          },
          {
            "$ref": "#/components/schemas/AzureOpenAIExternalLLM"
          },
          {
            "$ref": "#/components/schemas/DIdLLM"
          },
          {
            "$ref": "#/components/schemas/AutoLLM"
          }
        ],
        "title": "Configuration"
      },
      "KnowledgeProvider": {
        "type": "string",
        "enum": [
          "pinecone"
        ],
        "nullable": false
      },
      "Knowledge": {
        "properties": {
          "id": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/KnowledgeProvider",
            "description": "The provider of the knowledge base"
          },
          "starter_message": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "List of messages to be showen as chat starter questions for the user to ask",
            "deprecated": true
          },
          "base_knowledge": {
            "type": "string",
            "description": "Prompt based textual knowledge",
            "deprecated": true
          }
        },
        "required": [
          "id"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "WebhookConfig": {
        "description": "Webhook configuration for immediate execution\nNote: HTTP method is controlled by the system, not user-configurable",
        "properties": {
          "url": {
            "$ref": "#/components/schemas/ExternalUrl",
            "description": "Target URL for the webhook"
          },
          "headers": {
            "properties": {},
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "description": "Additional headers to include"
          },
          "auth": {
            "$ref": "#/components/schemas/Auth",
            "description": "Authentication configuration"
          }
        },
        "required": [
          "url"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Record_string.JSONValue_": {
        "properties": {},
        "additionalProperties": false,
        "type": "object",
        "description": "Construct a type with a set of properties K of type T"
      },
      "ToolItem": {
        "description": "Tool configuration for event-specific usage",
        "properties": {
          "tool_id": {
            "type": "string",
            "description": "Tool id reference."
          },
          "static_values": {
            "$ref": "#/components/schemas/Record_string.JSONValue_",
            "description": "Optional Static parameters values to be used for the tool"
          }
        },
        "required": [
          "tool_id"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "ToolChoiceStrategy": {
        "type": "string",
        "enum": [
          "auto",
          "required"
        ],
        "description": "Tool choice strategy for LLM function calling"
      },
      "EventTriggerConfig": {
        "description": "Configuration for a specific trigger event",
        "properties": {
          "webhooks": {
            "items": {
              "$ref": "#/components/schemas/WebhookConfig"
            },
            "type": "array",
            "description": "Webhooks to execute immediately when event fires"
          },
          "tools": {
            "items": {
              "$ref": "#/components/schemas/ToolItem"
            },
            "type": "array",
            "description": "Tools to make available to the LLM for this event"
          },
          "prompt_instructions": {
            "type": "string",
            "description": "Event-specific prompt instructions for the LLM"
          },
          "tool_choice": {
            "$ref": "#/components/schemas/ToolChoiceStrategy",
            "description": "How tools should be handled for this event"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "AgentTriggersConfig": {
        "description": "Agent triggers configuration with event-specific settings",
        "properties": {
          "chat/end": {
            "$ref": "#/components/schemas/EventTriggerConfig"
          }
        },
        "type": "object",
        "additionalProperties": false
      },
      "VisionConfig": {
        "description": "Vision configuration — enables the agent to see the user's camera feed\nthrough a dedicated background vision LLM pipeline.",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Feature gate — must be true to activate vision."
          }
        },
        "required": [
          "enabled"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "PronunciationDictionaryConfig": {
        "description": "Pronunciation dictionary configuration applied to the agent's speech.",
        "properties": {
          "id": {
            "type": "string",
            "example": "dict_V1StGXR8_Z5jdHi6B-myT",
            "pattern": "^dict_[A-Za-z0-9_-]{21}$"
          }
        },
        "required": [
          "id"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "Pick_Agent.Exclude_keyofAgent.user_data-or-advanced_settings-or-embed-or-assets-or-tools__": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Id of agent"
          },
          "preview_description": {
            "type": "string",
            "description": "Description of the agent"
          },
          "presenter": {
            "$ref": "#/components/schemas/AgentPresenter",
            "description": "Presenter who will show in the chat with the user\nTypes of presenters below, you could choose 1 option"
          },
          "llm": {
            "$ref": "#/components/schemas/LLMConfig",
            "description": "Configuration for the Large Language Model used by the Agent to generate responses."
          },
          "provider": {
            "type": "string",
            "enum": [
              "d-id-agents"
            ],
            "nullable": false,
            "description": "The provider of the agent"
          },
          "knowledge": {
            "$ref": "#/components/schemas/Knowledge",
            "description": "Knowledge documents base where the agent will look for answers"
          },
          "starter_message": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "List of messages to be showen as chat starter questions for the user to ask"
          },
          "greetings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "Greeting messages for the agent\nOne greeting is randomly displayed at the start of the chat"
          },
          "error": {
            "properties": {
              "details": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "description",
              "kind"
            ],
            "type": "object",
            "description": "Error object in case of errors"
          },
          "triggers": {
            "$ref": "#/components/schemas/AgentTriggersConfig",
            "description": "Trigger configurations for this agent"
          },
          "client_key": {
            "type": "string",
            "description": "Auto-generated scoped client key for the agent"
          },
          "pronunciation_dictionary": {
            "$ref": "#/components/schemas/PronunciationDictionaryConfig",
            "description": "Pronunciation dictionary applied to the agent's speech, so matching\nwords and phrases are spoken with your defined pronunciations. Use `null` for no dictionary."
          }
        },
        "required": [
          "id"
        ],
        "type": "object",
        "description": "From T, pick a set of properties whose keys are in the union K"
      },
      "Omit_Agent.user_data-or-advanced_settings-or-embed-or-assets-or-tools_": {
        "$ref": "#/components/schemas/Pick_Agent.Exclude_keyofAgent.user_data-or-advanced_settings-or-embed-or-assets-or-tools__",
        "description": "Construct a type with the properties of T except for those in type K."
      },
      "AssetStatus": {
        "enum": [
          "created",
          "started",
          "done",
          "error"
        ],
        "type": "string"
      },
      "AssetResponseDto": {
        "description": "An agent asset, as returned by the API.",
        "properties": {
          "id": {
            "type": "string"
          },
          "mime_type": {
            "type": "string"
          },
          "cdn_url": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "thumbnail_url": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/AssetStatus"
          },
          "moderation_error": {
            "$ref": "#/components/schemas/JsonError"
          },
          "media_id": {
            "type": "string",
            "description": "Present when this asset references a shared media-library item."
          }
        },
        "required": [
          "id",
          "mime_type",
          "description"
        ],
        "type": "object",
        "additionalProperties": false
      },
      "AgentResponseDto": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Omit_Agent.user_data-or-advanced_settings-or-embed-or-assets-or-tools_"
          },
          {
            "properties": {
              "assets": {
                "items": {
                  "$ref": "#/components/schemas/AssetResponseDto"
                },
                "type": "array",
                "description": "Assets associated with the agent. `media_id` is present when the asset is a link to a\nshared media-library item rather than a directly-uploaded file."
              },
              "metadata": {
                "properties": {
                  "plan": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "embed": {
                "type": "boolean"
              }
            },
            "required": [
              "embed"
            ],
            "type": "object"
          }
        ],
        "description": "Response DTO for agent transformation"
      },
      "Partial_ExpressiveAgentPresenter_": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "expressive"
            ],
            "nullable": false,
            "description": "Presenter type"
          },
          "presenter_id": {
            "type": "string",
            "description": "Id of avatar that will be shown for user",
            "example": "public_mia_elegant@avt_TJ0Tq5"
          },
          "background": {
            "$ref": "#/components/schemas/ExpressivePresenterBackground",
            "description": "presenter background config"
          },
          "view_mode": {
            "$ref": "#/components/schemas/StoredExpressiveViewMode",
            "description": "Camera framing for the agent's video: 'standard' keeps the full frame,\n'medium' and 'close-up' tighten it in that order. Includes the legacy\nframings, which agents saved before they were retired still carry.\nOptional and not defaulted: omitting it on update preserves the stored value\n(a `@default` here would make tsoa inject 'standard' and silently reset it).",
            "example": "close-up"
          },
          "video_config": {
            "$ref": "#/components/schemas/ExpressivePresenterVideoConfig",
            "description": "How the avatar's video is rendered. Changing it re-renders the agent's idle video."
          },
          "voice": {
            "$ref": "#/components/schemas/AgentVoice",
            "description": "Voice provider for text-to-speech."
          }
        },
        "type": "object",
        "description": "Make all properties in T optional",
        "title": "Expressive Avatar"
      },
      "PartialElevenLabsAgentPresenter": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Partial_ExpressiveAgentPresenter_"
          }
        ]
      },
      "Partial_Omit_ElevenLabsExternalAgent.type__": {
        "properties": {
          "agent_id": {
            "type": "string",
            "description": "The provider-side conversational agent ID"
          },
          "secret_id": {
            "type": "string",
            "description": "Reference to a stored secret containing the provider API key"
          }
        },
        "type": "object",
        "description": "Make all properties in T optional"
      },
      "ElevenLabsAgentUpdateDto": {
        "properties": {
          "preview_description": {
            "type": "string",
            "description": "Description of the agent"
          },
          "preview_name": {
            "type": "string",
            "description": "Name for preview"
          },
          "vision": {
            "$ref": "#/components/schemas/VisionConfig",
            "description": "Vision configuration — enables the agent to see the user's camera feed"
          },
          "presenter": {
            "$ref": "#/components/schemas/PartialElevenLabsAgentPresenter",
            "description": "Partial presenter update. Fields not supplied are hydrated from the existing agent."
          },
          "external_agent": {
            "$ref": "#/components/schemas/Partial_Omit_ElevenLabsExternalAgent.type__",
            "description": "Partial external-agent update. `type` is implied by the endpoint; only value fields\n(`agent_id`, `secret_id`) can be changed."
          }
        },
        "type": "object",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```