Skip to content

Conversation

ccurme
Copy link
Contributor

@ccurme ccurme commented Sep 19, 2025

Following langchain-ai/langchain#33021

Draft until that PR is merged into 1.0 branch and alpha releases are cut for core and relevant integrations (OpenAI, Anthropic)

@github-actions github-actions bot added langchain For docs changes to LangChain python For content related to the Python version of LangChain projects oss labels Sep 19, 2025
Copy link

Preview ID generated: preview-server-1758295440-6bcd1c2

Copy link

Preview ID generated: preview-server-1758319705-33c83f1

@ccurme ccurme marked this pull request as ready for review September 29, 2025 16:53
@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 16:53
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the OpenAI integration documentation to reflect changes in content block structure and types following upstream changes in the LangChain library. The changes standardize the naming and structure of content blocks for web search, file search, and code interpreter tools.

  • Updates content block type names from specific types to standardized server_tool_call and server_tool_result
  • Modifies example outputs to reflect new data structures with simplified field names
  • Adds optional include parameters to show how to optionally include tool results
Comments suppressed due to low confidence (2)

src/oss/python/integrations/chat/openai.mdx:1

  • This code snippet simplification removes important context about how to handle different block types. The previous version showed how to check for 'non_standard' blocks and access their 'value' field, which may still be necessary for users. Consider adding a comment explaining when the simplified approach is sufficient versus when the more detailed type checking is needed.
---

src/oss/python/integrations/chat/openai.mdx:1

  • The change from response.content[0] to response.content_blocks[0] should be explained or noted in the documentation. Users upgrading from the previous version may be confused by this API change without proper context about when to use content versus content_blocks.
---

Copy link

Preview ID generated: preview-server-1759164857-6becb25

@ccurme ccurme merged commit 9d79cc3 into main Sep 29, 2025
13 checks passed
@ccurme ccurme deleted the server_tool_call_integrations_updates branch September 29, 2025 17:10
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 python For content related to the Python version of LangChain projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant