A command-line tool for AI Developer Course challenges, built with Deno and TypeScript. It helps automate solving various programming challenges by integrating with AI models through their APIs.
This is my project developed during the AI Devs 3 course in which I was a participant.
More about AI Devs 3 here.
This is entirely created by me and my AI assistants. ?
This is my first project in Deno. Why? ? For fun and learning. ?
Usage:
deno run --allow-net --allow-env --allow-read src/main.ts solve-web-question <url>
deno run --allow-net --allow-env --allow-read --allow-write src/main.ts calibration-file-fix
deno run --allow-net --allow-env --allow-read --allow-write src/main.ts censorship-task
deno run --allow-net --allow-env --allow-read --allow-write src/main.ts auditions-taskThis use case includes a robot verification mechanism that communicates with a verification endpoint.
It allows the system to handle robot verification challenges by:
To use it run:
deno run --allow-net --allow-env --allow-read src/main.ts solve-web-question <url>The system handles verification requests in JSON format:
The application includes functionality to process audio recordings and analyze their content.
What this use case does:
Run this use case:
deno run --allow-net --allow-env --allow-read --allow-write src/main.ts auditions-taskTBD at the later point
This project uses:
The application requires the following environment variables to be set:
USERNAME - Username for authenticationPASSWORD - Password for authenticationANTHROPIC_API_KEY - Your Anthropic API keyAI_MODEL - The AI model to useTARGET_COMPANY_URL - The target URL for web questionsTARGET_COMPANY_VERIFICATION_ENDPOINT - The complete URL for the verification endpointCALIBRATION_FILE_URL - URL to download the calibration file fromAI_DEVS_API_KEY - API key for AI Devs verificationAI_DEVS_VERIFICATION_URL - The complete URL for the verification endpointCENSORSHIP_TASK_URL - The complete URL for the censorship task endpointAUDITIONS_TASK_MP3S_URL - URL to download the ZIP file containing audio recordingsAUDITIONS_TASK_NAME - Task name for verificationOPENAI_API_KEY - Your OpenAI API key for audio transcriptionOPENAI_AUDIO_MODEL - OpenAI model to use for audio transcriptionTo set up your environment:
Create a .env file in the root directory with these variables.
.env file--allow-net for network access--allow-env for environment variables--allow-read for .env file--allow-write for creation and writing new filesdeno test --allow-net --allow-env --allow-read --allow-writeThe application handles several types of errors:
The project uses GitHub Actions for continuous integration, which:
The CI pipeline runs on every push to the main branch and on pull requests.
src/use-cases/useCases object in src/main.tsMIT