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

Project 13: Job Search Agent

AI Engineer

Builds on these lessons

Current Task

Objective

The @tool decorator wraps a plain Python function, auto-generating the JSON schema an LLM needs to call it as a tool.

Task: define a search_jobs tool with @tool and print its auto-generated name.

index.py
from langchain_core.tools import tool @tool def search_jobs(keyword: str) -> str: """Search open job listings matching a keyword.""" return f"3 listings found for '{keyword}'" print(search_jobs.name)

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

Live Preview
🖼️

Verify your code to see the preview