Skip to main content

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/python3 is 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

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
  • Edit .env and set the required values (examples):
    • ADO_PLAN_ID
    • ADO_SUITE_ID
    • APP_PATH (local path to the Microsoft Teams app executable)
    • ADO_ORG
    • ADO_PROJECT
    • ADO_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_PATH points 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 the Test Case ID column.
  • If HCLTech_TestCaseId=true, the final report shows both Test Case ID and HCLTech ADO ID columns.

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

ai_regression_agent-0.1.0.tar.gz (77.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_regression_agent-0.1.0-py3-none-any.whl (90.6 kB view details)

Uploaded Python 3

File details

Details for the file ai_regression_agent-0.1.0.tar.gz.

File metadata

  • Download URL: ai_regression_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 77.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for ai_regression_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 caadf2c040874f4892e9cd5e36b9116896ebea7587f2d7bdf33fd4b838b34285
MD5 f069fadfb3f0c0093d2f7bb8d99a77ae
BLAKE2b-256 6d7ec639e5ff1d35f04a0957f66ebe255256b9450f1f3eeda707281fd91491e7

See more details on using hashes here.

File details

Details for the file ai_regression_agent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_regression_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f299c02d8350bc58e067623c096884a1a2c6a0e51691637088b5ce46547882
MD5 83719cd4bbd443ec876905e7a1785a47
BLAKE2b-256 ed653c0eb1d7def1d48f65d6dc4ae6f3e0b7c79dc07d18ea165e5e284a2b71eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page