Skip to content

docs: python toolbox-langchain sdk doc migration #2190

Merged
rapid-killer-9 merged 12 commits into
py-sdk-docsfrom
docs-py-sdk-lang
Feb 23, 2026
Merged

docs: python toolbox-langchain sdk doc migration #2190
rapid-killer-9 merged 12 commits into
py-sdk-docsfrom
docs-py-sdk-lang

Conversation

@rapid-killer-9

@rapid-killer-9 rapid-killer-9 commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

This PR migrates the toolbox-langchain Python SDK documentation to the main documentation site. It ensures all technical guides and references are centralized and up-to-date with the latest project standards.

Key Changes

  • Documentation Migration: Ported comprehensive content from the Python SDK repository to the main docsite, covering installation, quickstart examples, and detailed usage instructions for integrating with popular AI frameworks like LangChain and LangGraph.

  • Compatibility Updates: Updated the documentation to support the current Hugo version used by the site.

  • Model Update: Updated all Gemini model references to Gemini 3 Preview to align with the latest SDK capabilities.

  • Content Enhancement: Added detailed guides for:

  • Framework Integration: Detailed examples and guidance on integrating the SDK with both LangChain and LangGraph, including graph configurations.

  • Authentication Mechanisms: Coverage of client-to-server authentication (specifically for Google Cloud environments like Cloud Run) and tool-specific authentication using OIDC/Google OAuth 2.0 ID tokens.

  • Advanced Usage: Guidance on binding parameter values to tools for security and consistency, alongside instructions for utilizing asynchronous interfaces to improve performance.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @rapid-killer-9, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request adds extensive documentation for the toolbox-langchain Python SDK. The new guide covers installation, quickstart examples, and detailed usage instructions for integrating with popular AI frameworks like LangChain and LangGraph. It also provides in-depth explanations for handling both client-to-server and tool-specific authentication, binding tool parameters for enhanced control, and utilizing asynchronous operations for better performance. This documentation aims to equip users with all the necessary information to effectively use the SDK for programmatic interaction with the MCP Toolbox service.

Highlights

  • New Documentation for toolbox-langchain SDK: This pull request introduces a comprehensive documentation file for the toolbox-langchain Python SDK, detailing its features and usage.
  • Integration with LangChain and LangGraph: The new documentation provides detailed examples and guidance on how to integrate the toolbox-langchain SDK with both LangChain and LangGraph frameworks, including quickstart examples and advanced graph configurations.
  • Authentication Mechanisms: The documentation covers two crucial authentication aspects: client-to-server authentication for securing the ToolboxClient connection to the server (especially for Google Cloud environments like Cloud Run) and tool-specific authentication for accessing sensitive data with OIDC/Google OAuth 2.0 ID tokens.
  • Tool Parameter Binding and Asynchronous Usage: Guidance is provided on how to predetermine and bind parameter values to tools for security and consistency, as well as how to leverage the SDK's asynchronous interfaces for improved performance through cooperative multitasking.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@rapid-killer-9 rapid-killer-9 added the type: docs Improvement to the documentation for an API. label Dec 17, 2025

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds new documentation for the toolbox-langchain Python SDK. The documentation is comprehensive and well-structured. My review focuses on ensuring the correctness and clarity of the code examples provided. I've identified several issues in the code snippets, including incorrect asynchronous method calls, variable name mismatches, and syntax errors that would cause the examples to fail. I've provided suggestions to fix these issues to ensure the documentation is accurate and helpful for developers. I also found a few minor typographical errors.

Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md
Comment thread docs/en/sdks/python-sdk/langchain/index.md Outdated
Comment thread docs/en/sdks/python-sdk/langchain/index.md
@github-actions

Copy link
Copy Markdown
Contributor

@Yuan325 Yuan325 added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Dec 31, 2025
@Yuan325

Yuan325 commented Dec 31, 2025

Copy link
Copy Markdown
Contributor

@rapid-killer-9 Can you please provide a description for this PR? Thank you! :)

@Yuan325 Yuan325 changed the title PY toolbox-langchain Sdk doc migration docs: python toolbox-langchain sdk doc migration Dec 31, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@rapid-killer-9 rapid-killer-9 marked this pull request as ready for review January 12, 2026 09:06
@rapid-killer-9 rapid-killer-9 requested a review from a team January 12, 2026 09:06

@anubhav756 anubhav756 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similar to the corresponding PR for toolbox-core, can we have major sections in this doc added as separate pages?

Comment thread docs/en/sdks/python-sdk/langchain/index.md Outdated
@duwenxin99 duwenxin99 assigned anubhav756 and unassigned duwenxin99 Jan 22, 2026
@rapid-killer-9 rapid-killer-9 self-assigned this Feb 3, 2026
Co-authored-by: Anubhav Dhawan <anubhavdhawan@google.com>
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

@rapid-killer-9

Copy link
Copy Markdown
Contributor Author

can we have major sections in this

As we discussed major section is no longer needed

@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Comment thread docs/en/sdks/python-sdk/langchain/index.md Outdated
Comment thread docs/en/sdks/python-sdk/langchain/index.md Outdated
Comment thread docs/en/sdks/python-sdk/langchain/index.md Outdated
Comment thread docs/en/sdks/python-sdk/langchain/index.md
rapid-killer-9 and others added 2 commits February 19, 2026 15:06
Co-authored-by: Anubhav Dhawan <anubhavdhawan@google.com>
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Updated notice type from 'note' to 'info' for security warning.
@github-actions

Copy link
Copy Markdown
Contributor

@anubhav756 anubhav756 added priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. and removed priority: p2 Moderately-important priority. Fix may not be included in next release. labels Feb 23, 2026
@rapid-killer-9 rapid-killer-9 merged commit 8c14f2c into py-sdk-docs Feb 23, 2026
20 checks passed
@rapid-killer-9 rapid-killer-9 deleted the docs-py-sdk-lang branch February 23, 2026 08:34
@github-actions

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

rapid-killer-9 added a commit that referenced this pull request Feb 23, 2026
Docs Migration from python SDK repo to genai-toolbox repo.

This branch is used as parent branch for python Sdk docs migration 

child branch: 
1. #2166
2. #2190
3. #2291
4. #2409

---------

Co-authored-by: Anubhav Dhawan <anubhavdhawan@google.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: docs Improvement to the documentation for an API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants