Skip to content

fix: replace Python str type with z.string() in TypeScript example#3333

Open
Surya Teja Addanki (asuryateja) wants to merge 1 commit intolangchain-ai:mainfrom
asuryateja:typescript-zod-type-actor-model
Open

fix: replace Python str type with z.string() in TypeScript example#3333
Surya Teja Addanki (asuryateja) wants to merge 1 commit intolangchain-ai:mainfrom
asuryateja:typescript-zod-type-actor-model

Conversation

@asuryateja
Copy link
Copy Markdown

In the nested structures TypeScript example, name: str uses Python syntax instead of TypeScript/Zod syntax.

Fixed name: strname: z.string() to match the correct Zod schema definition used throughout the rest of the file.

Overview

Type of change

Type: [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other]

Related issues/PRs

  • GitHub issue:
  • Feature PR:
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow

Additional notes

In the nested structures TypeScript example, `name: str` uses 
Python syntax instead of TypeScript/Zod syntax.

Fixed `name: str` → `name: z.string()` to match the correct 
Zod schema definition used throughout the rest of the file.
@github-actions github-actions bot added langchain For docs changes to LangChain oss external User is not a member of langchain-ai labels Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant