Skip to content

Conversation

@nkhunters
Copy link
Contributor

The createAgent function in JavaScript/TypeScript uses systemPrompt as the parameter name, not prompt. This updates the documentation to reflect the correct API signature.

Changes:

  • Updated remaining instance in full example code section (line 535)
  • Ensures consistency with the correct createAgent API

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
  • 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
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

The createAgent function in JavaScript/TypeScript uses systemPrompt as
the parameter name, not prompt. This updates the documentation to reflect
the correct API signature.

Changes:
- Updated remaining instance in full example code section (line 535)
- Ensures consistency with the correct createAgent API
@nkhunters nkhunters requested a review from lnhsingh as a code owner October 28, 2025 09:44
@github-actions github-actions bot added langchain For docs changes to LangChain oss labels Oct 28, 2025
Copy link
Collaborator

@lnhsingh lnhsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@lnhsingh lnhsingh merged commit 18a3523 into langchain-ai:main Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants