Skip to content

v2.7.0

Latest

Choose a tag to compare

@ryanrishi ryanrishi released this 03 Dec 15:13
· 2 commits to main since this release
d5ffe8e

Upgrade notes

  • Logging no longer includes request or response bodies. When a Conversation Orchestrator or Conversation Memory call fails, the SDK logs the method, path, HTTP status and Twilio error code instead of the request body and response text. The Media Streams providers log a tool call's name but not its arguments or result. A malformed get_profile or lookup_profile response now raises a ValueError that names the invalid fields without their values.
  • ConversationRelay creates the conversation before the call connects (orchestrated mode, inbound and outbound). The TwiML now carries conversation_id and a tacConversationId custom parameter, and no longer sets conversation_configuration. If the create fails or takes longer than 5 s, TAC falls back to the previous behavior. Nothing is created when your TwiML options already set a conversation_id or select another conversation_configuration. VoiceTwiMLOptionsConversationRelay has a new optional conversation_id.
  • partial_prompts=True now fires on_message_ready once per turn instead of once per partial prompt.
  • Outbound ConversationRelay calls now record the dialed number (to) as the customer and your caller ID as the agent. Earlier versions swapped them. Only direction: "outbound-api" counts as outbound.
  • Recall failures fall back to Conversation Orchestrator. TAC.retrieve_memory now uses list_communications() when Recall fails, instead of returning empty memory. Direct callers of MemoryClient.retrieve_memory, including the built-in retrieve_profile_memory tool, now get an httpx.HTTPError or ValueError instead of an empty response.
  • New TAC.fetch_profile(profile_id) fetches a profile with your memory_config.trait_groups applied.
  • New VoiceChannel.on_dtmf(handler) receives ConversationRelay keypresses when dtmf_detection=True, one DtmfEvent (digit, conversation_id, call_sid, session) per key. A keypress initializes the conversation the same way a first prompt does. Digits are never logged.

What's Changed

Full Changelog: v2.6.0...v2.7.0