🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 15: Contact Form Assistant

AI Engineer

Builds on these lessons

Current Task

Objective

With multiple tools registered, the agent itself decides which one — if any — fits the current request, based on each tool's description.

Task: register three tools on an agent and print each tool's name.

index.py
from langchain_core.tools import tool @tool def send_email(message: str) -> str: """Send a contact message via email.""" return "sent" @tool def schedule_call(topic: str) -> str: """Schedule a call about a topic.""" return "scheduled" @tool def log_ticket(issue: str) -> str: """Log a support ticket.""" return "logged" tools = [send_email, schedule_call, log_ticket] for t in tools: print(t.name)

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview