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

chore: Remove dead code

Clémence Lesné5b68ab008fe4
diff --git a/helpers/llm_tools.py b/helpers/llm_tools.py
index 589bff3..7217225 100644
--- a/helpers/llm_tools.py
+++ b/helpers/llm_tools.py
@@ -1,5 +1,4 @@
from azure.communication.callautomation import CallConnectionClient
-from fastapi import BackgroundTasks
from helpers.call_utils import ContextEnum as CallContextEnum, handle_play
from helpers.config import CONFIG
from helpers.llm_utils import function_schema
diff --git a/main.py b/main.py
index a188e8a..0a4c2d2 100644
--- a/main.py
+++ b/main.py
@@ -23,7 +23,6 @@ from azure.core.messaging import CloudEvent
from azure.eventgrid import EventGridEvent, SystemEventNames
from fastapi import FastAPI, status, Request, HTTPException, BackgroundTasks, Response
from fastapi.responses import JSONResponse, HTMLResponse
-from helpers.logging import build_logger
from jinja2 import Environment, FileSystemLoader, select_autoescape
from models.call import CallModel
from models.next import ActionEnum as NextActionEnum
diff --git a/persistence/ai_search.py b/persistence/ai_search.py
index 58990cf..abfe4f5 100644
--- a/persistence/ai_search.py
+++ b/persistence/ai_search.py
@@ -7,7 +7,6 @@ from azure.core.exceptions import (
from azure.search.documents.aio import SearchClient
from azure.search.documents.models import VectorizableTextQuery
from contextlib import asynccontextmanager
-from helpers.config import CONFIG
from helpers.config_models.ai_search import AiSearchModel
from helpers.logging import build_logger
from models.call import CallModel