[DOCS] TypeScript SDK installation missing required zod peer dependency

Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened Jan 26, 2026 · closed Feb 28, 2026

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 requires zod as 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

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗