[Snyk] Upgrade langchain from 0.0.163 to 0.2.7
This PR was automatically created by Snyk using the credentials of a real user.

Snyk has created this PR to upgrade langchain from 0.0.163 to 0.2.7.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
-
The recommended version is 116 versions ahead of your current version.
-
The recommended version was released on 21 days ago.
Release notes
Package name: langchain
-
0.2.7 - 2024-06-25
What's Changed
- langchain[patch]: Release 0.2.6 by @ jacoblee93 in #5859
- anthropic[minor]: Allow passing OpenAI formatted tools by @ bracesproul in #5849
- anthropic[patch]: Release 0.2.2 by @ bracesproul in #5860
- groq[minor]: Update bindTools typing to include openai tools format by @ bracesproul in #5855
- groq[patch]: Release 0.0.13 by @ bracesproul in #5861
- standard-tests[minor]: Add test checking models support openai tool format by @ bracesproul in #5856
- community[minor]: Update bedrock to accept openai formatted tools by @ bracesproul in #5852
- google-common[minor]: Allow openai formatted tools by @ bracesproul in #5853
- google-genai[minor]: Allow openai formatted tools by @ bracesproul in #5854
- google-genai[patch]: Release 0.0.21 by @ bracesproul in #5863
- google-common[patch]: Fix remove additional properties util by @ bracesproul in #5862
- google-common[patch]: Release 0.0.19 by @ bracesproul in #5864
- google-gauth[patch],google-webauth[patch]: Release 0.0.19 by @ bracesproul in #5865
- google-vertexai[patch],google-vertexai-web[patch]: Release 0.0.19 by @ bracesproul in #5866
- [patch]: Set cloudflare ai resoultions version in root by @ bracesproul in #5847
- community[patch]: Release 0.2.13 by @ jacoblee93 in #5868
- docs[patch]: Add note about openai formatted tools by @ bracesproul in #5870
- docs[minor]: bedrock tool calling/WSO docs by @ bracesproul in #5735
- docs[patch]: Add callout, update chatbot tools guide by @ jacoblee93 in #5883
- community[minor]: JinaAI embeddings integration by @ AvaterClasher in #5842
- community-experimental[minor]: feat: implement DatadogLLMObsTracer by @ josemussa in #5867
- core[patch]: Fix #5873 (LCEL issue when streaming from LLMs) by @ welljsjs in #5874
- langchain[patch]: fix:pass runManager to DocumentCompressor in MultiQueryRetriever by @ jm-szlendak in #5881
- community[patch]: Add pgvector index using HNSW by @ jl4nz in #5564
- core[patch]: fix: Document should handle empty pageContent (fixes #5884) by @ glorat in #5885
- build[patch]: Format by @ jacoblee93 in #5892
- ci[patch]: fix unit-tests-integrations by implementing dynamic matrix strategy. by @ rameshkrishna in #5768
- langchain[minor]: Multi-file loader by @ theogravity in #5584
- ci[patch]: Adds npm install test for conflicting deps by @ jacoblee93 in #5895
- core[patch]: Release 0.2.10 by @ jacoblee93 in #5896
- community[patch]: Release 0.2.14 by @ jacoblee93 in #5897
New Contributors
- @ AvaterClasher made their first contribution in #5842
- @ welljsjs made their first contribution in #5874
- @ jm-szlendak made their first contribution in #5881
- @ rameshkrishna made their first contribution in #5768
- @ theogravity made their first contribution in #5584
Full Changelog: 0.2.6...0.2.7
-
0.2.6 - 2024-06-21
What's Changed
- Release 0.2.5 by @ jacoblee93 in #5665
- docs[patch]: Redirects for LangSmith and LangGraph by @ jacoblee93 in #5667
- community[patch]: Release 0.2.6 by @ jacoblee93 in #5668
- partners[minor]: Add standard chat model tests to partner packages by @ bracesproul in #5660
- core[patch]: Fix formatting mustache image templates by @ bracesproul in #5666
- community[minor]: Add standard tests to community chat models by @ bracesproul in #5669
- core[release]: Release 0.2.6 by @ bracesproul in #5670
- docs[patch]: Adds heading keywords for search by @ jacoblee93 in #5678
- community[patch]: Change neo4j verify connectivity method by @ tomasonjo in #5679
- partners[patch]: Release partner & community packages by @ bracesproul in #5688
- openai[patch]: Release 0.1.2 by @ bracesproul in #5689
- community[patch]: Deprecate Google PaLM integrations by @ bracesproul in #5690
- docs[patch]: Adds PDF ingestion and QA tutorial by @ jacoblee93 in #5692
- textsplitters[patch]: Bump dependency range for @ langchain/textsplitters by @ jacoblee93 in #5693
- textsplitters[patch]: Release 0.0.3 by @ jacoblee93 in #5695
- docs[patch]: Add deprecation warnings to Google PaLM docs by @ bracesproul in #5696
- community[patch]: Loosen conflicting peer dep by @ jacoblee93 in #5694
- community[patch]: Release 0.2.8 by @ jacoblee93 in #5697
- docs[patch]: Remove duplicated heading section on rag.ipynb by @ froggy1014 in #5674
- community[patch]: anthropic add tool call support new tools api by @ LordMsz in #5640
- community[minor]: Fixed ChatWebLLM reload function and updated model name in example by @ kaiwinut in #5671
- community[patch]: Release 0.2.9 by @ jacoblee93 in #5698
- docs[patch]: Add crosslinks, add LangGraph and LangSmith sections by @ jacoblee93 in #5702
- docs[patch]: replace wrong interface API reference link by @ froggy1014 in #5706
- docs[patch]: Point OpenAI LLM docs at chat models by @ jacoblee93 in #5718
- docs[patch]: Add pointers from LLM pages to chat model pages by @ jacoblee93 in #5719
- google[patch]: Release 0.0.18 by @ bracesproul in #5720
- ci[minor]: Add more packages to lowest/latest deps ci workflow by @ bracesproul in #5703
- google-vertexai[minor]: Move tests from gauth/webauth into vertexai packages by @ bracesproul in #5722
- Unstructured in memory loader by @ jacoblee93 in #5726
- infra[minor]: Add vertexai to latest/lowest ci by @ bracesproul in #5727
- docs[patch]: Adds streaming conceptual docs by @ jacoblee93 in #5728
- google-vertexai[minor] Add standard tests by @ bracesproul in #5721
- openai[minor],docs[minor]: Add parallel tool calls call option and docs by @ bracesproul in #5717
- community[patch]: allow to use postgres pool instance on PostgresRecordManager by @ josemussa in #5677
- community[major]: DeepInfra llm and chat by @ ovuruska in #5672
- anthropic[patch]: Stream tokens by @ bracesproul in #5730
- openai[patch],azure-openai[patch]: Update legacy classes to respect the apiKey field by @ scottforte in #5714
- community[patch]: Release 0.2.10 by @ jacoblee93 in #5739
- azure-openai[patch]: Release 0.0.11 by @ jacoblee93 in #5740
- openai[patch]: Release 0.1.3 by @ jacoblee93 in #5741
- ci[patch]: Only run CI testsing if specific package touched by @ bracesproul in #5733
- cohere[minor]: Fix token counts, add usage_metadata by @ bracesproul in #5732
- cohere[patch]: Release 0.1.0 by @ bracesproul in #5747
- docs[patch]: Adds structured output section to concepts by @ jacoblee93 in #5750
- docs,examples[patch]: Replace .getRelevantDocuments with .invoke by @ bracesproul in #5749
- mistral[minor]: Populate usage metadata for mistral by @ bracesproul in #5751
- ci[patch]: Always run standard tests by @ bracesproul in #5755
- openai[patch]: Fix tool content list by @ bracesproul in #5756
- Fix [ERR_REQUIRE_ESM] error when importing hf_transformers by @ JonaMX in #5746
- community[minor]: Update SingleStore vector store by @ volodymyr-memsql in #5715
- community[patch]: Release 0.2.11 by @ jacoblee93 in #5758
- google-genai[minor]: Add support for token counting via usage_metadata by @ bracesproul in #5757
- docs[patch]: Update embeddings conceptual docs by @ jacoblee93 in #5759
- docs: Graph tutorial updates by @ iPagar in #5762
- google-genai[patch]: Nit standard tests by @ bracesproul in #5764
- google-common[minor]: Add stream_usage by @ bracesproul in
[!IMPORTANT]
Review skipped
Ignore keyword(s) in the title.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>.Generate unit testing code for this file.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai generate unit testing code for this file.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai generate interesting stats about this repository and render them as a table.@coderabbitai show all the console.log statements in this repository.@coderabbitai read src/utils.ts and generate unit testing code.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (invoked as PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.