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

doc: Comment usage of every dependencies

Clémence Lesnéfd3774635f74
diff --git a/pyproject.toml b/pyproject.toml
index 1a3c0c2..0535dfa 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,57 +6,57 @@ name = "call-center-ai"
readme = "README.md"
requires-python = "==3.11"
dependencies = [
- "aiohttp==3.9.5",
- "aiosqlite==0.20.0",
- "azure-ai-translation-text==1.0.0",
- "azure-communication-callautomation==1.2.0",
- "azure-communication-sms==1.0.1",
- "azure-cosmos==4.7.0",
- "azure-eventgrid==4.20.0",
- "azure-functions==1.20.0",
- "azure-identity==1.17.0",
- "azure-monitor-opentelemetry==1.6.0",
- "azure-search-documents==11.6.0b4",
- "azure-storage-queue==12.10.0",
- "django-htmlmin==0.11.0",
- "jinja2==3.1.4",
- "json-repair==0.25.1",
- "mistune==3.0.2",
- "openai==1.35.3",
- "opentelemetry-instrumentation-aiohttp-client==0.46b0",
- "opentelemetry-instrumentation-httpx==0.46b0",
- "opentelemetry-instrumentation-openai==0.23.0",
- "opentelemetry-instrumentation-redis==0.46b0",
- "opentelemetry-instrumentation-sqlite3==0.46b0",
- "opentelemetry-semantic-conventions==0.46b0",
- "phonenumbers==8.13.39",
- "pydantic-extra-types==2.8.2",
- "pydantic-settings==2.3.3",
- "pydantic[email]==2.7.4",
- "python-dotenv==1.0.1",
- "pytz==2024.1",
- "pyyaml==6.0.1",
- "redis==5.0.6",
- "tenacity==8.2.3",
- "tiktoken==0.7.0",
- "twilio==9.2.1",
- "typing-extensions==4.12.2",
+ "aiohttp==3.9.5", # Async HTTP client for Azure and Twilio SDKs
+ "aiosqlite==0.20.0", # Async SQLite3 driver
+ "azure-ai-translation-text==1.0.0", # Azure Cognitive Services Text Translation
+ "azure-communication-callautomation==1.2.0", # Azure Communication Services Call Automation
+ "azure-communication-sms==1.0.1", # Azure Communication Services SMS
+ "azure-cosmos==4.7.0", # Azure Cosmos DB
+ "azure-eventgrid==4.20.0", # Azure Event Grid
+ "azure-functions==1.20.0", # Azure Functions
+ "azure-identity==1.17.0", # Azure identity library
+ "azure-monitor-opentelemetry==1.6.0", # Azure Monitor OpenTelemetry
+ "azure-search-documents==11.6.0b4", # Azure AI Search
+ "azure-storage-queue==12.10.0", # Azure Storage Queue
+ "django-htmlmin==0.11.0", # Minify HTML
+ "jinja2==3.1.4", # Template engine, used for prompts and web views
+ "json-repair==0.25.1", # Repair JSON files from LLM
+ "mistune==3.0.2", # Markdown parser for web views
+ "openai==1.35.3", # OpenAI client
+ "opentelemetry-instrumentation-aiohttp-client==0.46b0", # OpenTelemetry instrumentation for aiohttp client
+ "opentelemetry-instrumentation-httpx==0.46b0", # OpenTelemetry instrumentation for HTTPX
+ "opentelemetry-instrumentation-openai==0.23.0", # OpenTelemetry instrumentation for OpenAI
+ "opentelemetry-instrumentation-redis==0.46b0", # OpenTelemetry instrumentation for Redis
+ "opentelemetry-instrumentation-sqlite3==0.46b0", # OpenTelemetry instrumentation for SQLite3
+ "opentelemetry-semantic-conventions==0.46b0", # OpenTelemetry conventions, to standardize telemetry data
+ "phonenumbers==8.13.39", # Phone number parsing and formatting, used with Pydantic
+ "pydantic-extra-types==2.8.2", # Extra types for Pydantic
+ "pydantic-settings==2.3.3", # Application configuration management with Pydantic
+ "pydantic[email]==2.7.4", # Data serialization and validation, plus email validation
+ "python-dotenv==1.0.1", # Load environment variables from .env file
+ "pytz==2024.1", # Time zone handling
+ "pyyaml==6.0.1", # YAML parser
+ "redis==5.0.6", # Redis client
+ "tenacity==8.2.3", # Async retrying library
+ "tiktoken==0.7.0", # Tokenization library for OpenAI models
+ "twilio==9.2.1", # Twilio SDK, used for SMS
+ "typing-extensions==4.12.2", # Typing extensions for Python 3.6+
]
[project.optional-dependencies]
dev = [
- "black[jupyter]==24.4.2",
- "deepeval==0.21.59",
- "deptry==0.16.1",
- "isort==5.13.2",
- "pip-tools==7.4.1",
- "pylint==3.2.5",
- "pyright==1.1.371",
- "pytest-assume==2.4.3",
- "pytest-asyncio==0.23.7",
- "pytest-repeat==0.9.3",
- "pytest-xdist[psutil]==3.6.1",
- "pytest==8.2.2",
+ "black[jupyter]==24.4.2", # Code formatter
+ "deepeval==0.21.59", # LLM model evaluation
+ "deptry==0.16.1", # Dependency tree testing
+ "isort==5.13.2", # Import sorter
+ "pip-tools==7.4.1", # Compile requirements.txt from pyproject.toml
+ "pylint==3.2.5", # Linter
+ "pyright==1.1.371", # Static type checker
+ "pytest-assume==2.4.3", # Pytest plugin for conditional tests
+ "pytest-asyncio==0.23.7", # Pytest plugin for async tests
+ "pytest-repeat==0.9.3", # Pytest plugin for repeating tests
+ "pytest-xdist[psutil]==3.6.1", # Pytest plugin for parallel testing
+ "pytest==8.2.2", # Testing framework
]
[tool.setuptools]