Module 10 of 10, lesson 4 of 5
Practice
Use cases and final project
Write the code
Runs in your browser, with no install, account or API key. The model is scripted, so the results are repeatable.
function costPerTask(t) { // TODO return 0;}function decide(t) { // TODO return { automate: false, costPerTask: 0, monthlySaving: 0, paybackMonths: null };}
Give the agent a skillShould this be automated?
Open in the editorconst CAP = 100;function makeTools({ orders, policy, pay, approve }) { return { get_order: async ({ id }) => { if (!(id in orders)) throw new Error(`Unknown order ${id}`); return { id, total: orders[id] }; }, search_policy: async ({ topic }) => policy[topic] ?? 'No policy found',
Give the agent a skillFinal project: the refund agent
Open in the editorRunning project
Take three tasks from your own work. For each, choose human, rules, machine learning or agent, and justify it in one sentence. Then start the final project on the best fit, or on the running project.
Practice
- AI Agents Course Hugging Face
Its assignments are a good complement to the final project. - AI Agents for Beginners Microsoft
18 free lessons with a short video and Python code samples each.
Some of these need a free account or an API key, which may be paid.