From 3e4a440e0244c6a5cdd31c9b3d88f9457d37a06a Mon Sep 17 00:00:00 2001
From: "quantstruct-canvas[bot]"
<209174517+quantstruct-canvas[bot]@users.noreply.github.com>
Date: Wed, 20 Aug 2025 22:53:03 +0000
Subject: [PATCH] =?UTF-8?q?chore:=20changelog=20for=202025-08-20=20?=
=?UTF-8?q?=E2=80=94=20major=20API=20update:=20handoff=20tool,=20rejection?=
=?UTF-8?q?=20plans,=20security,=20metrics?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
fern/changelog/2025-08-20.mdx | 73 +++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
create mode 100644 fern/changelog/2025-08-20.mdx
diff --git a/fern/changelog/2025-08-20.mdx b/fern/changelog/2025-08-20.mdx
new file mode 100644
index 000000000..99136b93f
--- /dev/null
+++ b/fern/changelog/2025-08-20.mdx
@@ -0,0 +1,73 @@
+---
+title: "2025-08-20: Major API Updates — Handoff Tool, Rejection Plans, Metrics, Security, and More"
+date: 2025-08-20
+---
+
+
+
+ Major OpenAPI Release: Multi-Agent Handoff, Tool Rejection, Security, and Observability
+
+
+## 🚀 New Features & Additions
+
+### Multi-Agent Handoff Tool
+- **New `HandoffTool` and related endpoints**: Seamlessly hand off conversations between agents (assistants) using the new `handoff` tool type. Handoffs can be configured for:
+ - Single or multiple static destinations (by assistant ID or name)
+ - Dynamic destinations via server webhook, including custom parameters (e.g., customer intent, sentiment)
+- Use case: Enables advanced multi-agent orchestration, escalations, and dynamic call routing in complex workflows.
+
+### Tool Rejection Plans
+- **All tools now support a `rejectionPlan`**: Define conditions under which a tool call should be rejected (e.g., user didn't say goodbye, bot is looping, or user intent mismatch).
+- Flexible logic: Supports regex, Liquid templates, and logical groups for advanced conversation state handling.
+- Use case: Prevents accidental tool calls, enables smarter, context-aware flows, and reduces conversational errors.
+
+### Expanded Voice Capabilities
+- **New `MinimaxVoice` support**: Configure Minimax TTS with options for model, pitch, speed, region, volume, emotion, and caching.
+- **Voice fallback plans**: Enhanced failover across voice providers, including Minimax and Inworld.
+
+### Performance Metrics & Observability
+- **`call.artifact.performanceMetrics`**: Track detailed turn-level latency for model, voice, endpointing, and transcription.
+- **`AnalysisCostBreakdown`**: Now includes structured output token usage and costs.
+- **Support for Langfuse and improved logging/recording paths in `ArtifactPlan`**.
+
+### Security & Compliance
+- **Security filter plans**: New `securityFilterPlan` in compliance configuration allows for transcript sanitization, rejection, or replacement on threats (e.g., SQLi, XSS, prompt injection).
+- **User message filtering**: Each message now tracks `isFiltered`, `detectedThreats`, and `originalMessage`.
+- **RBAC and retention controls**: Subscription objects now include `rbacEnabled`, `callRetentionDays`, and `chatRetentionDays`.
+
+### Workflow & Assistant Enhancements
+- **Workflow-level hooks, background sound, keypad input plans, and dynamic credentials** (including Minimax credentials).
+- **Custom LLM models and headers**: Workflows and assistants can now specify custom model endpoints and headers.
+- **More granular artifact and analysis configuration**.
+
+## ⚠️ Breaking Changes & Deprecations
+
+### Major Deprecations
+- **Tool `function` property removed**: All custom logic for tool execution must now be handled via webhooks or rejection plans. Update your tool configurations accordingly.
+- **Removed legacy support endpoints**: `/support/ticket`, `/workflow/generate`, `/campaign/paginated` and discriminator mappings for `ghl`, `make`, `output` have been removed.
+- **Removed properties from core objects:**
+ - `Assistant`: `messagePlan`, `silenceTimeoutSeconds`, `backgroundDenoisingEnabled`
+ - `Artifact`/`NodeArtifact`: `variables`
+ - `AssemblyAITranscriber`: `enableUniversalStreamingApi`
+ - Tool DTOs: All `function` properties
+
+### Migration Guidance
+-
+ Update all tool definitions to use rejectionPlan for conditional logic.
+ Replace removed `function` fields with webhook-based or plan-based logic.
+
+ Review assistant and workflow schemas:
+ Remove deprecated properties and update to new compliance, hooks, and model options.
+
+
+## 📝 Documentation Updates Required
+
+- **Tool configuration**: Update all tool examples and guides to use `rejectionPlan` instead of `function`.
+- **Handoff flows**: Add new documentation and code samples for `handoff` tool and dynamic routing.
+- **Security/compliance**: Document new `securityFilterPlan` and message filtering fields on user messages.
+- **Performance metrics**: Add usage guides for turn latency and cost breakdown.
+- **Assistant/workflow schemas**: Remove deprecated fields and highlight new credential, sound, and model options.
+
+
+ Note: This release introduces significant improvements for multi-agent orchestration, security, and observability, but also requires updates to existing tool and assistant configurations. Please review all breaking changes and update your integrations accordingly.
+