Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ShivMunagala
Copy link

@ShivMunagala ShivMunagala commented Sep 9, 2025

_ToolLike type is defined as _ToolsType which is a Sequence[_ToolType], so we don't need tools to be defined as Optional[Sequence["_ToolLike"]], it just needs to be Optional["_ToolLike"]

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Get the necessary approvals
  • Once the last commit on the PR has been approved, add the "ready to pull" label to the Pull Request

Note: do not merge your PR from GitHub. Adding the "ready to pull" label is the final step in the review process.
After approvals, the changes in your PR will be committed to the main branch and this PR will be closed.

Fixes #5786 🦕

`_ToolLike` type is defined as `_ToolsType` which is a `Sequence[_ToolType]`, so we don't need tools to be defined as `Optional[Sequence["_ToolLike"]]`, it just needs to be `Optional["_ToolLike"]`
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Sep 9, 2025
Copy link

google-cla bot commented Sep 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the api: vertex-ai Issues related to the googleapis/python-aiplatform API. label Sep 9, 2025
@ShivMunagala ShivMunagala changed the title fix (typing): LangchainAgent tools fix(typing): LangchainAgent tools Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect type definition for tools on vertexai.agent_engines.LangchainAgent
1 participant