Repository navigation
AI agent release: SWML ai, events, and Python SDK 3.7.1–3.15.3 - #993
Draft
Devon-White wants to merge 4 commits into
Draft
Devon-White wants to merge 4 commits into
Devon-White wants to merge 4 commits into
Conversation
SWML ai: duration values, new params, voice arrays and fallback_voice, history isolate/spoken, expected_answer, gather say_questions, gate unclear/dialogue/history/since, new result actions, model list. Relay/webhooks: response_heard, manual_say, speech_detect words, calling.error voice-recovery fields, post_prompt event removed, call_ended_by, SWAIG request fields. Regenerated output.
Semantic gates confirmation flow, content redaction coverage, HeyGen Voice page, Grok voice list.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs for the upcoming AI agent release (SWML
aiverb) and Python SDK 3.7.1 to 3.15.3. Draft: merge when the release is deployed. Every new shape is opt-in, but several defaults change for existing agents (listed below), and on today's platform a voice array or"1.5s"duration doesn't work yet.Summary
SWML
aireference + TypeSpec## Duration valuessection ("1.5s", "20m", "1h30m", "1:30"). Every millisecond param, plushard_stop_time, is now typedinteger | duration.ignore_backchannels,noisy_line_ms,tts_pause_cap_ms,turn_filler_volume,text_normalization_show_heard,enable_end_call,unavailable_function_response,background_sounds,semantic_gate_dialogue,rescue_model, and theheygen_*params.transparent_bargewindow andenable_bargecancelling on partials.redact_promptlists what it now masks.tts_number_format,inactivity_timeout,outbound_attention_timeout,initial_sleep_ms,save_conversation,summary_mode.isolateandspoken, with a comparison table;hidenow keeps the exchange that entered the step.expected_answer, gathersay_questionsand per-questionsay, andgather_submitwaiting for the caller's answer.valid_stepsandvalid_contextsare enforced.change_stepto the current step restarts it.gpt-6-luna, dropsgpt-4.1-nano, and shows OpenAI's shutdown dates.model@providerrule, substitution withmodel_substituted,reasoning_effortandverbosityon prompt/post_prompt, failover, and context consolidation.fallback_voicefollows it.default_voiceSWML variable.expressiveness_boostfor HeyGen.no_barge_next_response,semantic_gate_mark,back_to_back_functions,extensive_data,change_voice(array),add_dynamic_hints/clear_dynamic_hints,end_of_speech_timeout/speech_event_timeout,wait_for_user.holdtakes durations.settingsmerges instead of replacing.sayis now interruptible and reaches the model.tool_call_id,step,context,language,modelandturn.unclear/on_unclear,dialogue/history/since, filled-inon_fail, and the new fields the decision model reads and the call records.gpt-6-luna; live_transcribe getsai_model.from_voice/to_voicetake arrays, andspeech_timeout/vad_silence_mstake durations.Events and webhooks (Relay + REST specs)
calling.ai.response_heardandcalling.ai.manual_sayevents.speech_detectgainswords;partial_resultgainsbarged; bothtransparent_bargepayload shapes are documented;stoptimes are in microseconds.calling.ai.post_promptremoved (no longer sent).calling.errordocuments the voice-recovery fields (includingfallback_index/fallback_source),model_substituted,invalid_semantic_gateandwebhook_drain_timeout.call_ended_byenum, and gate records gaindialogue,choice,unclear_limitandunclear.swaig_loggainssuperseded.Platform guides
Python SDK reference (3.7.1 to 3.15.3)
set_expected_answer, gathersay_questions/say, render-time warnings.set_default_voice,set_agent_voice,set_fallback_voicedefine_tool(vouched=, nullable_optional=, middleware=, needs_conversation=),define_native_tool, tool middleware,set_unavailable_function_responseon_call_start,on_ai_event,speech_finalsback_to_back_functions,no_barge_next_response,set_semantic_gate_mark,refresh_step,change_voice, plus duration strings.signalwire.patterns(Proposal, RequestList); speech helpers; testing (CallSimulator, RequestRecorder);signalwire.operationswith task packs, FrontDeskAgent and PersonalAssistantAgent.return_(), validation when a verb is added,sleepvalidation.Call.ring(),SIGNALWIRE_RELAY_HOST, search--query-stopwords/rank_weight,sw-pydocs.Defaults that change for existing agents
Backchannels are ignored over the agent's speech. The noisy-line notice is on at 4000 ms. Pauses inside the agent's speech are capped at 300 ms. Turn fillers play 6 dB quieter. The transparent barge window is now measured from the caller's last statement.
next_step/change_contextare validated. Responses API models default toverbosity: low.rescue_modeldefaults togpt-6-luna. The last-resort voice is Cartesia Kurt. Duration strings are read with their units.calling.ai.post_promptis no longer sent. Function requests carry new fields.Notes for reviewers
Not documented on purpose (internal or not public)
event_webhook_urlhas no page anywhere in the docs, so events only mention it.Needs engineering confirmation
save_conversation: the release notes say the next call POSTsagent.load_conversation, but the existing docs and spec sayfetch_conversation. The action name is left out.max_completion_tokens(1 to 2048) forgpt-6-luna, which conflicts with the existingmax_tokens(0 to 4096). Consolidation reservesmax_response_tokens, which the params page says has no effect on reply length. None of this was changed.temperaturerange forgpt-6-luna: the notes say 0 to 2, the documented range is 0 to 1.5. Left unchanged.gpt-5.4is listed among the Responses-API models but not on the supported list. Only supported models are documented.@anthropicis a valid provider suffix, but no public model uses it, so onlyopenaiandazure-openaiare named. OpenAI's suggested replacements are omitted becausegpt-6.1-terraisn't supported.live_translate/live_transcribeare assumed to accept voice arrays and duration strings like SWML does.translation_model/ai_modelweren't added; we couldn't confirm those paths accept them.from_voice/to_voicedefault changed fromjoshto Azureen-US-RyanMultilingualNeural, per the notes.languages[].voiceandmultilingual.languagesare now optional in the schema, becausedefault_voicecan fill them.SWAIG.hooks, but no such key exists in the spec, so it isn't documented.wait_for_useris typed boolean; the SDK also sends a number or"answer_first".add_dynamic_hintsitems reuse theai.hintsform.clear_dynamic_hintstakes{}.sayaction text masked in the call log, now thatmanual_saymasks it?transparent_bargecombined_textmasked?unclear?Operations.confirm_gates()returns one gate (agreed), not three. The page follows the source.Call.ring()accepts**kwargs, but its parameters aren't documented.pay(ai_response=None)sendsnull; the old "disables it" claim was removed.min_utterance_ms,escalate_after_ms,function_filler_sequence_gap_ms,double_turn_wait_ms,double_turn_filler_min_ms.Scope gaps / follow-ups
fern/products/server-sdks/sdk-source-sync.jsonis not bumped. Only the release items were synced, not a full audit against v3.15.3.multi-agent.mdxandcall-transfer.mdx.call-flow.mdxstill shows{"sleep": {"time": 500}}in its generated-SWML block and TypeScript tab.translate-calls.mdxdoesn't yet mention voice arrays ortranslation_model.gpt-4.1-nanomentions remain inai_sidecarand in thethinking_model/utility_model/vision_modeldocs.Draft changelog entry. This is not committed: CLAUDE.md dates changelog files to the day the change reaches customers. Add it as
fern/products/platform/changelog/<deploy-date>.mdxon deploy day.(Links verified against current slugs.)
Verification
yarn build:specs: passes. Regenerated output is committed: the SWML JSON schema, the REST OpenAPI, and the Relay client/server specs.yarn fern-md-check: passes (all 2980 MDX files valid).yarn fern-check: the only error is the missing-redirects check, which couldn't reach Fern's FDR (403) from the sandbox. No pages were moved or removed. CI should run it.languages[].voicebecomes#languagesvoice) and should be spot-checked in preview.Pages to preview
/docs/swml/reference/calling/ai/docs/swml/reference/calling/ai/params/docs/swml/reference/calling/ai/prompt/docs/swml/reference/calling/ai/languages/docs/swml/reference/calling/ai/multilingual/docs/swml/reference/calling/ai/swaig/functions/docs/swml/reference/calling/ai/swaig/functions/gates/docs/swml/reference/calling/ai/swaig/functions/data-map/docs/swml/reference/calling/live-translate/docs/swml/reference/calling/live-transcribe/docs/platform/ai/semantic-gates/docs/platform/ai/content-redaction/docs/platform/voice/ttsand the HeyGen and Grok pages/docs/server-sdks/reference/python/agents/operations.../agents/patterns.../agents/testing.../agents/speech.../agents/context-builder/step/set-history.../agents/function-result.../agents/prefabs.../agents/swml-builder.../relay/call/ringcalling.aievents andcalling.error