[PR #1524] [MERGED] docs: clarify ProviderStrategy vs ToolStrategy in response_format note #1617

Closed
opened 2026-02-17 17:22:32 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1524
Author: @benjamin-frost
Created: 11/19/2025
Status: Merged
Merged: 11/21/2025
Merged by: @lnhsingh

Base: mainHead: patch-1


📝 Commits (2)

  • a9eed9b docs: clarify ProviderStrategy vs ToolStrategy in response_format note
  • 66087b4 Merge branch 'main' into patch-1

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/oss/langchain/structured-output.mdx (+2 -2)

📄 Description

Overview

This PR fixes a confusing note in the create_agent.response_format documentation. The original text implied that ToolStrategy is used when passing a schema directly, which is incorrect. The update clarifies that ProviderStrategy is automatically used for models that support native structured output, and wrapping the schema explicitly is optional.

Type of change

Type: Update existing documentation

Related issues/PRs

  • GitHub issue: -
  • Feature PR: -

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/1524 **Author:** [@benjamin-frost](https://github.com/benjamin-frost) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`a9eed9b`](https://github.com/langchain-ai/docs/commit/a9eed9b1cdcc37e4a21c63d1c52d0b1e9a8a1c10) docs: clarify ProviderStrategy vs ToolStrategy in response_format note - [`66087b4`](https://github.com/langchain-ai/docs/commit/66087b468f71565dadce3f936492a9808b4a58c6) Merge branch 'main' into patch-1 ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/structured-output.mdx` (+2 -2) </details> ### 📄 Description ## Overview This PR fixes a confusing note in the `create_agent.response_format` documentation. The original text implied that `ToolStrategy` is used when passing a schema directly, which is incorrect. The update clarifies that `ProviderStrategy` is automatically used for models that support native structured output, and wrapping the schema explicitly is optional. ## Type of change **Type:** Update existing documentation ## Related issues/PRs - GitHub issue: - - Feature PR: - ## Checklist - [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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:22:32 -05:00
yindo closed this issue 2026-02-17 17:22:33 -05:00
yindo changed title from [PR #1524] docs: clarify ProviderStrategy vs ToolStrategy in response_format note to [PR #1524] [MERGED] docs: clarify ProviderStrategy vs ToolStrategy in response_format note 2026-06-05 18:13:57 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1617