[DOCS] TypeScript SDK installation missing required zod peer dependency
Documentation Type
Missing documentation (feature not documented)
Documentation Location
https://platform.claude.com/docs/en/agent-sdk/typescript
Section/Topic
"Installation" section
Current Documentation
The installation section shows:
``bash npm install @anthropic-ai/agent-sdk ``
What's Wrong or Missing?
The TypeScript SDK has a peer dependency on zod for schema validation, but this is not mentioned in the installation instructions. Users following the documentation may encounter runtime errors when zod is not installed.
Suggested Improvement
Update the installation instructions to include the peer dependency:
Before:
npm install @anthropic-ai/agent-sdk
After:
npm install @anthropic-ai/agent-sdk zod
Or add a note about peer dependencies:
Note: This SDK requireszodas a peer dependency for schema validation: ``bash npm install @anthropic-ai/agent-sdk zod``
Impact
Medium - Makes feature difficult to understand
Additional Context
Affected Pages:
| Page | Section |
|------|---------|
| https://platform.claude.com/docs/en/agent-sdk/typescript | Installation |
Total scope: 1 page affected
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗