Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
quality: Code quality
Clémence Lesné3134ebb2e800
diff --git a/app/main.py b/app/main.pyindex fb920c4..71229b1 100644--- a/app/main.py+++ b/app/main.py@@ -947,7 +947,8 @@ async def _communicationservices_urls()@tracer.start_as_current_span("twilio_sms_post")async def twilio_sms_post(- Body: Annotated[str, Form()], From: Annotated[PhoneNumber, Form()]+ Body: Annotated[str, Form()],+ From: Annotated[PhoneNumber, Form()],) -> Response:"""Handle incoming SMS event from Twilio.diff --git a/tests/cache.py b/tests/cache.pyindex cf2a805..d98dca7 100644--- a/tests/cache.py+++ b/tests/cache.py@@ -20,7 +20,10 @@ from app.helpers.config_models.cache import ModeEnum as CacheModeEnum)@pytest.mark.asyncio(loop_scope="session")@pytest.mark.repeat(10) # Catch multi-threading and concurrency issues-async def test_acid(random_text: str, cache_mode: CacheModeEnum) -> None:+async def test_acid(+ cache_mode: CacheModeEnum,+ random_text: str,+) -> None:"""Test ACID properties of the cache backend.diff --git a/tests/llm.py b/tests/llm.pyindex 5c9923a..826cb7e 100644--- a/tests/llm.py+++ b/tests/llm.py@@ -242,8 +242,8 @@ async def test_llm( # noqa: PLR0913claim_tests_excl: list[str],deepeval_model: GPTModel,expected_output: str,- speeches: list[str],lang: str,+ speeches: list[str],) -> None:"""Test the LLM with a mocked conversation against the expected output.