Repository navigation
docs(guides): add the required _register_tools stub to composing-skills - #6931
Conversation
…skills agent The agent class in section 3 of the composing-skills guide leaves out _register_tools, which is abstract on the base Agent, so section 5's MyReviewAgent(skill_set="library") raises TypeError. Add an empty stub and say why it can be empty. Closes amd#3415
|
Verdict: Request changes Adding the missing method fixes the real crash: anyone copying the guide's agent got a
Real-world evidenceN/A: docs-only change. This verdict rests on static review, checked against the base 🔍 Technical detailsIssues found 🟡 "The skills bring the tools" contradicts the guide and the loader (
With that change, the class line becomes If you'd rather keep the stub empty, at minimum replace "the skills bring the tools" / "the loaded skills supply the tools" with a sentence saying an empty stub only works for instruction-only skills that need no tools. That still leaves the guide's example skill unrunnable, though. Strengths
|
The skill in the composing-skills example names read_file and search_code, but a skill does not provide tools. Have the example agent register them through FileIOToolsMixin so the skill can run its own steps.
The agent class in section 3 of the composing-skills guide leaves out
_register_tools, which is abstract on the baseAgent. Copying it and running section 5 raisesTypeError: Can't instantiate abstract class. The example now defines it and registersread_fileandsearch_codethroughFileIOToolsMixin, the two tools the guide'sapi-compatibilityskill needs, so the skill can run its own steps.Closes #3415
Test plan
FileIOToolsMixinhas no abstract methods left, andread_fileandsearch_codeare registered