Skip to content

Commit 2df4aa0

Browse files
authored
fix(docs): correct typos — 'tools'is undefined (#1359)
## Overview <!-- Brief description of what documentation is being added/updated --> ## Type of change **Type:** [Replace with: New documentation page / Update existing documentation / Fix typo/bug/link/formatting / Remove outdated content / Other] ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: - Feature PR: <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [ ] 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](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers -->
1 parent 0483ec9 commit 2df4aa0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/oss/langchain/structured-output.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ LangChain automatically uses `ProviderStrategy` when you pass a schema type dire
227227
228228
const agent = createAgent({
229229
model: "gpt-5",
230-
tools: tools,
230+
tools: [],
231231
responseFormat: providerStrategy(ContactInfo)
232232
});
233233
@@ -255,7 +255,7 @@ LangChain automatically uses `ProviderStrategy` when you pass a schema type dire
255255
256256
const agent = createAgent({
257257
model: "gpt-5",
258-
tools: tools,
258+
tools: [],
259259
responseFormat: providerStrategy(contactInfoSchema)
260260
});
261261
@@ -582,7 +582,7 @@ function toolStrategy<StructuredResponseT>(
582582

583583
const agent = createAgent({
584584
model: "gpt-5",
585-
tools: tools,
585+
tools: [],
586586
responseFormat: toolStrategy(ProductReview)
587587
})
588588

@@ -623,7 +623,7 @@ function toolStrategy<StructuredResponseT>(
623623

624624
const agent = createAgent({
625625
model: "gpt-5",
626-
tools: tools,
626+
tools: [],
627627
responseFormat: toolStrategy(productReviewSchema)
628628
});
629629

@@ -653,7 +653,7 @@ function toolStrategy<StructuredResponseT>(
653653

654654
const agent = createAgent({
655655
model: "gpt-5",
656-
tools: tools,
656+
tools: [],
657657
responseFormat: toolStrategy([ProductReview, CustomerComplaint])
658658
});
659659

0 commit comments

Comments
 (0)