Saltar a la navegación

Swift SDK v4

Swift SDK v4.0.0 is the first stable release of the redesigned SDK for ElevenAgents conversations, and the core ElevenLabs library now follows semantic versioning. One ConversationClient runs any number of conversations, starting voice conversations over WebRTC with startVoiceConversation and text-only conversations over a WebSocket with startTextOnlyConversation, each with credentials matched to its transport at compile time. Client tools registered in clientTools send their own results, chatHistory updates streamed replies in place, and onDisconnect reports why a conversation ended. The v4.0.0 release notes list every change and link a migration guide from v3.

Agents as code

ElevenAgents agents can now be defined in code with the Agent builder in the Python and JavaScript SDKs, from v2.80.0. One definition holds the agent’s settings, its tools and its workflow, and agents.push() creates or updates the agent and every webhook and client tool it uses, filling in the tool IDs and leaving unchanged tools alone. agents.pull() and AgentProject keep agents in the same project layout as the ElevenLabs CLI, and validate() checks an agent in CI without an API key. See Agents as code.

New agent LLMs

ElevenAgents adds four LLMs: GPT-6.2 Sol (gpt-6.2-sol), GPT-6.2 Astra (gpt-6.2-astra), Gemini 4 Hydrogen (gemini-4-hydrogen) and Gemini 4 Neon (gemini-4-neon). Select them in the agent’s LLM picker or set them as llm through the API. The GPT-6.2 models and Gemini 4 Neon run at low reasoning effort unless the agent sets one. See Models.

100,000 characters per Eleven v4 request

Text to Speech requests to Eleven v4 (eleven_v4) and Eleven v4 Turbo (eleven_v4_turbo) accept up to 100,000 characters, up from 10,000, so about 100 minutes of audio can come from one request. The limit applies to every Text to Speech endpoint that accepts these models. See Character limits.

Union and array tool parameters

ElevenAgents tool parameters can declare a union of object shapes with AnyOfJsonSchemaProperty, which lists the shapes in any_of and names the property that tells them apart in discriminator. The LLM sees the union as anyOf, and the tool editor has an anyOf type for building one in the dashboard. Webhook tool query parameters can also be arrays of literals through QueryArrayJsonSchemaProperty, sent as repeated keys such as ?status=open&status=pending. See Server tools.

All changes

  • New LLMs: gpt-6.2-sol and gpt-6.2-astra offer low to max reasoning effort and default to low. gemini-4-hydrogen offers low to xhigh effort and defaults to high, and gemini-4-neon offers low to xhigh and defaults to low. Both Gemini models support the fast service tier. deepseek-v41-flash is zero retention mode and HIPAA eligible in the US, so zero retention agents can select it. Nemotron 3.5 thinking follows the agent’s reasoning effort: off when unset, shorter on medium and full length on high. gpt-6.1-sol and gpt-6.1-terra run at low reasoning effort instead of medium when the agent sets none. Requests for grok-beta now go straight to gemini-3.5-flash, and agents that name it switch to gemini-3.5-flash on their next save. See Models.
  • Scribe v3 Live Medical: The Scribe v3 Live Medical speech recognition model is available to every ElevenAgents workspace, including workspaces with EU data residency, and scribe_v3_live_medical is now in the public ASRProvider enum. Select it under Automatic Speech Recognition in the agent’s settings; it requires the turn_v3 turn model. Companies that need HIPAA compliance must sign a Business Associate Agreement before sending protected health information.
  • Tool parameters: Tool parameters accept unions of object shapes (anyOf with a discriminator) in the API and the tool editor, and webhook tool query parameters accept arrays of literals, sent as repeated keys. When a tool is called, an optional parameter bound to a dynamic variable that was never set is left out instead of failing the tool call. The Test tool dialog no longer sends empty optional parameters as null. Tool Logs and usage statistics record calls to tools that only a procedure enables.
  • Dynamic variables: The system__conversation_start_time and system__conversation_start_time_utc system variables stay the same for the whole conversation, so prompts that use them stay cacheable, unlike system__time. The variable menu lists them and warns that system__time and system__time_utc hurt prompt caching. system__current_workflow_node_id holds the ID of the active workflow node. See Dynamic variables.
  • Structured procedures: Ask steps accept a custom exit condition that replaces the default ask-and-response condition, set from the step’s Ask settings. The editor can author Update state steps, which set dynamic variables. The Procedures analytics tab filters the invocations chart by procedure. See Structured procedures.
  • Experiments: Experiment results compare each variant with Main on response latency and data collection, and add a Chance to win column with a 95% interval for the difference. Agent dashboards add Experiment and Variant filters. Variants follow their branch’s auto-rebase setting while an experiment runs, and the experiment page offers Keep all in sync with Main for variants that fall behind. See Experiments.
  • Branches and alerts: Merge branch and Rebase branch return 409 merge_conflicts_unresolved for a merge or rebase with conflicts unless conflict_resolutions settles every conflict, instead of picking a side automatically. Each resolution names a conflict_id from the preview and a choice of source, target or custom. Alerting settings at agent and workspace level accept environments, which limits monitors to conversations from the listed environments and must include production; the Monitor thresholds sheet adds a Monitored environments picker. See Alerts.
  • Testing: Agent Testing can delete tests in bulk, with a review dialog that lists tests other agents or branches depend on and offers to delete only the safe ones or force-delete the whole selection. Create and update test requests validate against the test type they name, agent_config_override is applied as a partial patch, and conversation_config and platform_settings in run-test overrides are optional. See Agent testing.
  • Integrations and channels: The Plain integration is available to every workspace, with plain_integration as its conversation source. Zendesk ticket comment triggers add Include Private Comments (on by default); turn it off to keep internal notes out of the agent’s context. The Genesys Bot Connector channel adds Output Parameters, dynamic variables returned to Genesys when a conversation completes. WhatsApp retries a message when the connection to Meta fails instead of ending the conversation, and shows when a number needs re-verification. Custom LLMs accept mtls_auth_connection, which presents a client certificate to the LLM endpoint and to the OAuth2 token endpoint, alongside an OAuth2 client credentials, OAuth2 JWT or bearer auth_connection. See Custom LLM.
  • Conversation behavior and limits: Soft timeouts accept up to 30 additional filler messages, up from 7, and pause_after_filler (default false) leaves a short pause between a filler and the agent’s response. Call queueing holds up to 400 callers per agent, up from 50. Text-only chats whose client stops answering pings for 5 minutes close with code 1000 and end as done, with failure type user_inactivity_timeout. A first_message of only whitespace is treated as empty. Saving an agent through the API or SDKs creates missing RAG indexes for attached documents in the background, so the save no longer fails with rag_index_not_ready.
  • Privacy: Transferring to a zero retention agent applies zero retention mode to the rest of the WebSocket conversation. Transcript translation is refused for zero retention conversations with 400 redacted_transcript. Get conversation details with format=opentelemetry redacts secret__ dynamic variables, as the JSON format does.
  • Dashboard and Architect: Architect is available on the agent Preview page, and its /commands menu and approval mode are available to everyone. Architect can create or change a workflow node or edge in one call and resolve each conflict when merging or rebasing a branch. Transcripts show guardrail triggers with the blocked message and the reason, including in async conversations. The Enable chat mode setting is renamed Text only. Usage records Speech Engine and Realtime API conversations as their own products instead of as Agents. Conversations from WebSocket clients that declare no source are labelled WebSocket API instead of unknown.
  • Fixes: Agents no longer read procedure references such as [procedure index="1"] aloud. A reply with nothing to speak, such as only tags, no longer leaves the turn open until the call drops. The Realtime Max opener no longer speaks a tool call written out as text. Data collection keeps multi-value enum answers when every value is in the enum. Update state steps saved from the editor no longer start another turn after end_call or a Genesys transfer. Publishing keeps a language preset’s TTS model and a workflow node’s clone strength. Translating a structured procedure Say step stored without a step ID works. The real-time monitoring WebSocket checks monitoring_enabled on the version a branch call ran on. Knowledge base search includes documents shared through custom roles, Markdown documents keep their web links, pages fetched from Fern docs sites no longer start with an llms.txt banner, and List crawl jobs no longer returns short or empty pages. Concurrency rejection messages report the current agent or workspace concurrency. Realtime model and avatar changes save with voice edit permission. The outbound and test call dialogs ask for the selected branch’s dynamic variables.
  • New tools: agents_outbound_call places one call from an imported phone number, with optional dynamic variables and a first message override, and returns the conversation_id. agents_get_draft reads an agent branch’s unpublished draft, and agents_update_draft changes conversation config fields in it without overwriting other staged changes. agents_create_pronunciation_dictionary, agents_get_pronunciation_dictionary, agents_add_pronunciation_dictionary_rules and agents_remove_pronunciation_dictionary_rules create and edit pronunciation dictionaries. creative_get_guide serves short workflow guides, such as making a voiceover or building and testing an agent. See Hosted MCP.
  • Tool behavior: agents_run_tests returns the test invocation and its ID as soon as the run starts instead of waiting for the whole suite. agents_update accepts prompt, first_message, language and voice_id. agents_create uses the default voice when voice_id names no voice. The merge and rebase branch tools accept a choice for each conflict.
  • Client compatibility: Errors name the next step to take, and common successful calls return a next_steps list. The batch calling terms error links to the page where the terms are accepted. Tagged unions are advertised as one object, and LLM, TTS and speech to text model fields as open strings, so more MCP clients accept valid calls. Testing tools accept a body sent as JSON text or with its fields beside it, and validation errors return short field and error pairs.
  • Fixes: agents_connect_workflow_nodes no longer fails with Missing required argument(s): source.
  • Eleven v4 character limit: eleven_v4 and eleven_v4_turbo accept up to 100,000 characters per request, up from 10,000. See Character limits.
  • History: List generated items accepts sources, an array of TTS, STS and Flows that matches any of them and cannot be combined with source. The list no longer returns empty pages with has_more set when many items were deleted, and the search, voice_id and model_id filters find matches past deleted items.
  • Realtime keyterms: The realtime WebSocket accepts keyterms lists of up to 50 keyterms and 1,000 characters in total, with no limit per keyterm, which was 20 characters. See Keyterm prompting.
  • Session length for single-use tokens: Create single-use token accepts max_session_duration_seconds for realtime_scribe tokens, which closes the realtime session opened with the token after that many seconds. Other token types return 400 when it is set.
  • Realtime language labels: Without language hints, committed transcripts in Chinese, Japanese and Korean get the right language_code more often, using the script of the text. With language_code or secondary languages set, the first segment after a language switch is labelled with the language of its text instead of the previous segment’s language.
  • Fixes: Batch transcription with entity detection no longer fails with 500 on text that splits into 512-token chunks.
  • Similar voices filters: Find similar voices accepts the Voice Library filters category, gender, age, use_cases, min_notice_period_days, include_custom_rates, include_live_moderated and owner_id as query parameters.
  • Voice Library rate limit: List shared voices has a per-user rate limit of 600 tokens per minute, where each request costs 1 + page * page_size // 50 tokens, between 1 and 600. Requests for a page past the end of the results return 400 invalid_page.
  • Live Moderation on library voices: Adding a Voice Library voice to My Voices turns Live Moderation off on the copy when the voice’s owner has turned it off, so agents accept the voice.
  • Fixes: The Instant Voice Clone recorder uses the selected microphone, rejects silent recordings and uploads, and clears the minimum length warning after 10 seconds.
  • Multiple SSO providers: SSO settings list every provider available to the workspace, including inherited ones, and can add SAML or OIDC providers, edit the workspace’s own providers and share each one with child and sibling workspaces. Identity provider allowlists accept verified domains, so one domain can keep password login while other users sign in with SSO.
  • SCIM routing: SCIM routing settings are available to every consolidated billing parent workspace, so a parent can route SCIM users and groups to child workspaces from one identity provider connection.
  • Concurrency limits: Workspace settings show the workspace’s Agents, Text to Speech, Speech to Text, Realtime Speech to Text and Music concurrency limits next to seats.
  • Agents environments permission: Creating, updating and deleting agent environments and environment variables requires the agents_environment_variables_write permission; Agents write access alone no longer allows it. Admins can grant the permission through groups or API keys, and members without it can still view environments.
  • Webhook redelivery: Members with the webhooks_manage permission can use Redeliver webhook delivery, which was limited to workspace admins.
  • Usage alerts: Workspaces can have several usage alerts of each type, up to 20 per workspace, managed from one Usage alerts table in settings. Duplicate alerts are rejected, and credit percentage alerts go up to 500%.
  • Remove payment details: Admins of free and pay-as-you-go workspaces without auto top-up can remove saved payment methods with Remove payment details in the subscription dialog.
  • Pay-as-you-go top-ups: A failed pay-as-you-go top-up no longer puts the plan through payment retries or cancels it, and UPI top-ups can be approved from the top-up dialog.
  • Consolidated billing: Pausing usage on a consolidated billing parent pauses its child workspaces too. Child usage charged to the parent is checked against the parent workspace’s limits only, not the parent owner’s personal or group limits.
  • Recording notice: Receptionists accept first_message_mode (interruptible, the default, uninterruptible or recording_notice), which replaces disable_first_message_interruptions. With recording_notice, the greeting opens with a recording notice in the receptionist’s language, spoken in a second voice.
  • Reseller templates and currency: Create reseller workspace accepts vertical, and new businesses on a reseller with a template catalog start from the default template for their vertical. Reseller tier ladders are priced in one currency, returned as currency on each tier. See Reception API.
  • Logging setting: The realtime translation WebSocket accepts enable_logging (default true); set it to false for zero retention mode, which is available to enterprise customers. It replaces enable_zrm in the API reference, and enable_zrm is still accepted.
  • Voice isolator: Stream audio isolation returns 429 before streaming starts when the request is over the concurrency limit, instead of a 200 with a cut-off body.
  • Studio: Subtitle exports skip audio tag clips that have no alignment, as audio exports do, so cues no longer drift past the audio.
  • Image and video: MiniMax H3 Max costs 25% less until the end of November 30.

Swift SDK

  • v4.0.0 - First stable release of the v4 API. ConversationClient replaces ElevenLabs.startConversation(...) and ElevenLabs.configure(...), with startVoiceConversation (WebRTC) and startTextOnlyConversation (WebSocket) taking ConversationAuth.Voice and ConversationAuth.TextOnly credentials. Callbacks move to ConversationCallbacks, client tools register in clientTools, chatHistory replaces messages, onDisconnect receives an EndReason, ConversationError has one case per failure, and setAgentMuted and ConversationAudioObserver control audio. The package builds in Swift 6 language mode. Adds an experimental ElevenLabsWidget library with ChatWidget.

JavaScript SDK

  • v2.80.0 - Added the Agent builder, which holds an agent’s settings, tools and workflow in one definition, and agents.push() and agents.pull(), which create or update the agent and every webhook and client tool it uses. AgentProject keeps agents in the ElevenLabs CLI’s project layout. See Agents as code. The tool builder loads transfer_to_number tools that use transfer_rules, and the workflow builder only creates a transition in a direction that has a condition. Conversation sessions can set userId, branchId, startingWorkflowNodeId, procedureIds and startProcedureIds, identify themselves as node_js_sdk, and emit session_ended once, with DisconnectionDetails that say whether the user, the agent or an error ended the session. play() and stream() reject when the audio input fails, and a missing ffmpeg during realtime URL streaming is reported as an error event instead of ending the process. Regenerated with the API changes below.

Python SDK

  • v2.80.0 - Added the Agent builder in elevenlabs.agent_builder, and agents.push() and agents.pull() on ElevenLabs and AsyncElevenLabs, which create or update the agent and every webhook and client tool it uses. AgentProject keeps agents in the ElevenLabs CLI’s project layout. See Agents as code. Added the @client_tool decorator, which turns a typed function into a client tool and the handler that runs when the agent calls it. tools.create() and tools.update() accept the decorated function, and tools.check_client_tools() reports functions that no longer match the agent’s tools. See Define a client tool from a function. The tool builder loads transfer_to_number tools that use transfer_rules, and the workflow builder only creates a transition in a direction that has a condition. Synchronous client tools keep working after ClientTools is stopped and started again. Regenerated with the API changes below.

ElevenLabs CLI

  • v1.12.2 - Updated the bundled API client.
  • v1.13.0 - Regenerated against the latest API, so the endpoint subcommands include the API changes below.

Packages

Updated endpoints

ElevenAgents

  • Create agent, Update agent and the agent get endpoints
    • The LLM enum, also used by conversation overrides on the /v1/convai/conversation WebSocket, adds gpt-6.2-sol, gpt-6.2-astra, gemini-4-hydrogen and gemini-4-neon.
    • ASRProvider adds scribe_v3_live_medical.
    • Tool parameter schemas add AnyOfJsonSchemaProperty (any_of, an array of at least two object shapes, a required discriminator string and an optional description) as a property type of object parameters and as an item type of array parameters.
    • Webhook tool query_params_schema properties accept QueryArrayJsonSchemaProperty alongside LiteralJsonSchemaProperty.
    • SoftTimeoutConfig adds pause_after_filler (boolean, default false), and additional_soft_timeout_messages accepts up to 30 items, up from 7. Workflow overrides add a nullable pause_after_filler.
    • CustomLLM adds optional mtls_auth_connection (auth connection locator or environment auth connection locator).
    • AlertingSettings adds optional environments (array of 1 to 20 strings that must include production), returned on AlertingSettingsResponse.
    • ConversationInitiationSource and the /v1/convai/conversation WebSocket’s source_info.source add unity_sdk and plain_integration.
  • Merge branch and Rebase branch
    • Added optional conflict_resolutions (array of ConflictResolution, each with conflict_id, choice of source, target or custom, and custom_value). Merge adds optional source_tip_id and target_tip_id; rebase adds optional branch_tip_id and source_tip_id.
    • Preview merge and Preview rebase responses add nullable source_tip_version_id, target_tip_version_id and merge_error, and each FieldConflict adds required id (string) and accepts_custom_value (boolean).
  • Run tests and resubmit test invocation - conversation_config and platform_settings in the agent config override are optional.
  • List triage tickets and List workspace triage tickets - Removed the issue_type query parameter. issue_type on ticket responses is deprecated and always null.

Text to Speech

  • List generated items - Added optional sources query parameter (array of TTS, STS or Flows), which cannot be combined with source.

Speech to Text

  • Create single-use token - Added optional max_session_duration_seconds query parameter (integer greater than 0) for realtime_scribe tokens.

Voices

  • Find similar voices - Added optional category, gender, age, owner_id (strings), use_cases (string array), min_notice_period_days (integer), include_custom_rates and include_live_moderated (booleans) query parameters.

Realtime translation

Reception.ai

  • Create reseller workspace - The request body is now ReceptionProvisionResellerWorkspaceRequest, which adds optional vertical (ReceptionVertical).
  • Reseller tier ladder - ResellerTierResponse adds required currency (currency code enum).
  • Customer-facing agents - ReceptionCustomerFacingConfig and its patch body add first_message_mode (interruptible, uninterruptible or recording_notice, default interruptible) and remove disable_first_message_interruptions.
  • Agent info - The currency enum adds GEL.