Skip to content

Commit 6d7af83

Browse files
authored
docs: fix duplicate-word typos in source comments (#10940)
## Summary Three duplicate-word typos in source comments, no code changes: | File:Line | Fix | |---|---| | \`libs/langchain-core/src/prompts/prompt.ts:186\` | \`used a a way\` → \`used as a way\` | | \`libs/langchain/src/agents/nodes/AgentNode.ts:167\` | \`if the the user\` → \`if the user\` | | \`libs/providers/langchain-openai/src/converters/responses.ts:569\` | \`have the the same index\` → \`have the same index\` | Diff is exactly 3 lines, all in JSDoc / inline comments. ## Novelty check \`gh pr list --search\` against each of the three file paths returned no open PR overlapping these lines. \`grep -rn \"the the \\| a a way\"\` across the repo turns up only these three sites. ## Test plan - [x] No runtime behavior changes — comment-only edits. - [x] \`grep -rn 'the the\\|a a way' libs/\` (excluding node_modules / dist) returns no matches after the fix. Co-authored-by: devteamaegis <devteamaegis@users.noreply.github.com>
1 parent caad091 commit 6d7af83

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libs/langchain-core/src/prompts/prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class PromptTemplate<
183183
/**
184184
* Take examples in list format with prefix and suffix to create a prompt.
185185
*
186-
* Intended to be used a a way to dynamically create a prompt from examples.
186+
* Intended to be used as a way to dynamically create a prompt from examples.
187187
*
188188
* @param examples - List of examples to use in the prompt.
189189
* @param suffix - String to go after the list of examples. Should generally set up the user's input.

libs/langchain/src/agents/nodes/AgentNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class AgentNode<
164164
* If the user selects a tool output:
165165
* - return a record of tools to extract structured output from the model's response
166166
*
167-
* if the the user selects a native schema output or if the model supports JSON schema output:
167+
* if the user selects a native schema output or if the model supports JSON schema output:
168168
* - return a provider strategy to extract structured output from the model's response
169169
*
170170
* @param model - The model to get the response format for.

libs/providers/langchain-openai/src/converters/responses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export const convertReasoningSummaryToResponsesReasoningItem: Converter<
566566
ChatOpenAIReasoningSummary,
567567
OpenAIClient.Responses.ResponseReasoningItem
568568
> = (reasoning) => {
569-
// combine summary parts that have the the same index and then remove the indexes
569+
// combine summary parts that have the same index and then remove the indexes
570570
const summary = (
571571
reasoning.summary.length > 1
572572
? reasoning.summary.reduce(

0 commit comments

Comments
 (0)