Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
dev: Make sure first log is version notice
Clémence Lesné2923cd0b70ab
diff --git a/main.py b/main.pyindex 0326318..643f9f0 100644--- a/main.py+++ b/main.py@@ -1,4 +1,14 @@-from typing import Any, AsyncGenerator, Callable, Coroutine, List, Optional, Tuple+# First imports, to make sure the following logs are first+from helpers.logging import build_logger+from helpers.config import CONFIG+++_logger = build_logger(__name__)+_logger.info(f"claim-ai v{CONFIG.version}")+++# General imports+from typing import Any, Callable, Coroutine, List, Optional, Tuplefrom azure.communication.callautomation import (CallAutomationClient,CallConnectionClient,@@ -17,9 +27,7 @@ from azure.identity import DefaultAzureCredential, get_bearer_token_providerfrom enum import Enumfrom fastapi import FastAPI, status, Request, HTTPException, BackgroundTasksfrom fastapi.responses import JSONResponse, HTMLResponse-from helpers.config import CONFIGfrom helpers.config_models.database import Mode as DatabaseMode-from helpers.logging import build_loggerfrom jinja2 import Environment, FileSystemLoader, select_autoescapefrom models.action import ActionModel, Indent as IndentActionfrom models.call import CallModel@@ -48,9 +56,6 @@ from uuid import UUIDimport json-_logger = build_logger(__name__)-_logger.info(f"claim-ai v{CONFIG.version}")-# Jinja templatesjinja = Environment(autoescape=select_autoescape(),