← Table of Contents · Page 141 of 868
WHAT TOOLS ARE
Part 6 of 8
PRACTICE LAB CONNECTION
In Chapter 65 you will design the Resume Review Agent's first tools: read_file, search_job_posting, and write_report.
Think about which are read-only and which are action tools.
You will see that write_report changes files, so it belongs in the action class.
Test the prompts below against those schemas.
ARTIFICIAL INTELLIGENCE ASSISTANT PROMPTS
[START OF PROMPT]
Review these tool input/output schemas for clarity and safety, and flag any field that is ambiguously typed, missing validation, or could let an action tool be invoked without adequate constraints: [PASTE LAB tool_registry.py / TOOL SCHEMAS HERE]. For each issue, give the exact corrected schema. Output format: a table (Tool, Issue, Corrected Schema Snippet).
[END OF PROMPT]
[START OF PROMPT]
Classify every tool in this list as read-only or action, and for each action tool specify the safety measure it needs (human approval, rate limit, audit log, idempotency check): [PASTE TOOL LIST / LAB REGISTRY HERE]. Flag any action tool currently missing one of these measures in the provided implementation. Output format: a table (Tool, Read-only/Action, Required Safety Measure, Currently Missing? Y/N).
[END OF PROMPT]
Advertisement
Read Aloud:
0:00 / 0:00