Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

quality: All call utils func should take the same context format

Clémence Lesné319796dcc0dc
diff --git a/helpers/call_utils.py b/helpers/call_utils.py
index 188d507..6d27f9c 100644
--- a/helpers/call_utils.py
+++ b/helpers/call_utils.py
@@ -109,7 +109,7 @@ async def handle_media(
client: CallAutomationClient,
call: CallStateModel,
sound_url: str,
- context: Optional[str] = None,
+ context: Optional[ContextEnum] = None,
) -> None:
"""
Play a media to a call participant.
@@ -331,7 +331,7 @@ async def handle_transfer(
client: CallAutomationClient,
call: CallStateModel,
target: str,
- context: Optional[str] = None,
+ context: Optional[ContextEnum] = None,
) -> None:
logger.debug(f"Transferring call to {target}")
try: