Common ai agent utilities and services for IDC Family Safety automation (agents, services, integrations, utils).
Project description
Backend — Setup and Run Guide
Follow these steps from the repository root. Commands shown for both Windows (cmd/Powershell) and Unix-like shells where applicable.
1) Clone the repository
git clone https://CTS-AI@dev.azure.com/CTS-AI/IDC_Family_Safety_Agent/_git/IDC_Family_Safety_Agent
cd IDC_Family_Safety_Agent
2) Enter the backend directory
cd backend
3) Prerequisites
- Install Python 3.12 and ensure
python/python3is on your PATH. - (Recommended) Create and activate a virtual environment:
- Windows (cmd):
python -m venv .venv&\.venv\Scripts\activate - Unix/macOS:
python3 -m venv .venv&source .venv/bin/activate
- Windows (cmd):
4) Install Python dependencies
pip install -r requirements.txt
If you need to install some packages manually, you can also run:
pip install playwright python-dotenv openai azure-storage-blob flask flask-cors pandas jinja2 openpyxl msal requests tldextract transformers
5) Install Playwright browsers
Run this from the same environment where Playwright is installed:
playwright install
On some systems you may also need playwright install-deps.
6) Configure environment variables
- Copy the example environment file and update values:
- Windows (cmd):
copy .env_example .env - Unix-like:
cp .env_example .env
- Windows (cmd):
- Edit
.envand set the required values (examples):ADO_PLAN_IDADO_SUITE_IDAPP_PATH(local path to the Microsoft Teams app executable)ADO_ORGADO_PROJECTADO_PAT- Optional:
LOGIN_EMAIL,LOGIN_PASSWORD, Azure OpenAI/Blob settings, etc.
7) Run the agent
From the backend directory run:
python run_natural_tests.py
This will start the agent and execute tests according to the configured ADO plan/suite or local test JSON fallback.
Notes
- Ensure
APP_PATHpoints to the correct Teams executable for your OS. - Updating ADO settings (
ADO_PLAN_ID,ADO_SUITE_ID,ADO_ORG,ADO_PROJECT,ADO_PAT) changes which test cases are fetched. - Generated reports, screenshots and videos are placed under
backend/reporting/reports/consolidated reports. If Azure Blob is configured, report links may be uploaded and shared.
Report formatting flags
- If
HCLTech_TestCaseId=false, the final report shows only theTest Case IDcolumn. - If
HCLTech_TestCaseId=true, the final report shows bothTest Case IDandHCLTech ADO IDcolumns.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_regression_agent-0.1.2.tar.gz.
File metadata
- Download URL: ai_regression_agent-0.1.2.tar.gz
- Upload date:
- Size: 77.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a5511820d322ea9932d8011a7f92d7cf1eeea856c23af399dd057a623d97807
|
|
| MD5 |
a4edaa9923f909ca0bebb317e62f10f3
|
|
| BLAKE2b-256 |
6942109dd01463f3898c30c19edf9286ece60a250c549e44e1f28424d3f6d0a6
|
File details
Details for the file ai_regression_agent-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ai_regression_agent-0.1.2-py3-none-any.whl
- Upload date:
- Size: 93.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e07a70bcb2639aa06be8c8f5da9a8fdb10d4eade1a0e0b79aaaf8ce1028551
|
|
| MD5 |
22811d2d327bbd62cd89232f6d3f47d4
|
|
| BLAKE2b-256 |
a11594720fb49fefaca6eefcd372d957713d6ec4c2035f792b30de9c9ada377b
|