From 9f006b3f54fe6d330e1516a32ec9b515436356bb Mon Sep 17 00:00:00 2001 From: nkhunters Date: Tue, 28 Oct 2025 13:37:17 +0400 Subject: [PATCH] fix(langchain): correct createAgent parameter name in quickstart 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 --- src/oss/langchain/quickstart.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oss/langchain/quickstart.mdx b/src/oss/langchain/quickstart.mdx index b358d17348..b457afa258 100644 --- a/src/oss/langchain/quickstart.mdx +++ b/src/oss/langchain/quickstart.mdx @@ -337,7 +337,7 @@ Let's walk through each step: const agent = createAgent({ model: "anthropic:claude-sonnet-4-5", - prompt: systemPrompt, + systemPrompt: systemPrompt, tools: [getUserLocation, getWeather], responseFormat, checkpointer, @@ -532,7 +532,7 @@ const checkpointer = new MemorySaver(); // Create agent const agent = createAgent({ model: "anthropic:claude-sonnet-4-5", - prompt: systemPrompt, + systemPrompt: systemPrompt, tools: [getUserLocation, getWeather], responseFormat, checkpointer,