Automating Tasks

Learn how to implement AI safety measures and automate the building and execution processes.

In this lesson, we’ll write the automation tasks that will include the agent extracting the URL endpoints for our application to use in frontend development. Moreover, we’ll also create a process to test those URL endpoints, build the application, and run it.

Ensuring AI safety

We need to make sure that the code we’re executing on our machine is safe to execute because sometimes AI models can be trained on malicious data and can result in either backdoors or loops in the code that can result in the user incurring the cost. For this purpose, we’ll write a function that will prompt the user to check if the code generated by the LLM is safe to execute or not. Inside the command_line.rs file, in the helpers folder, we’ll add this function:

Get hands-on with 1400+ tech skills courses.