mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 18:50:33 +00:00
integrations[patch]: bump core to 0.3.15 (#27805)
This commit is contained in:
@@ -143,10 +143,12 @@ def _merge_messages(
|
||||
all(isinstance(m, c) for m in (curr, last))
|
||||
for c in (SystemMessage, HumanMessage)
|
||||
):
|
||||
if isinstance(last.content, str):
|
||||
new_content: List = [{"type": "text", "text": last.content}]
|
||||
if isinstance(cast(BaseMessage, last).content, str):
|
||||
new_content: List = [
|
||||
{"type": "text", "text": cast(BaseMessage, last).content}
|
||||
]
|
||||
else:
|
||||
new_content = copy.copy(last.content)
|
||||
new_content = copy.copy(cast(list, cast(BaseMessage, last).content))
|
||||
if isinstance(curr.content, str):
|
||||
new_content.append({"type": "text", "text": curr.content})
|
||||
else:
|
||||
|
||||
6
libs/partners/anthropic/poetry.lock
generated
6
libs/partners/anthropic/poetry.lock
generated
@@ -514,7 +514,7 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "langchain-core"
|
||||
version = "0.3.9"
|
||||
version = "0.3.15"
|
||||
description = "Building applications with LLMs through composability"
|
||||
optional = false
|
||||
python-versions = ">=3.9,<4.0"
|
||||
@@ -530,7 +530,7 @@ pydantic = [
|
||||
{version = ">=2.7.4,<3.0.0", markers = "python_full_version >= \"3.12.4\""},
|
||||
]
|
||||
PyYAML = ">=5.3"
|
||||
tenacity = "^8.1.0,!=8.4.0"
|
||||
tenacity = ">=8.1.0,!=8.4.0,<10.0.0"
|
||||
typing-extensions = ">=4.7"
|
||||
|
||||
[package.source]
|
||||
@@ -1333,4 +1333,4 @@ watchmedo = ["PyYAML (>=3.10)"]
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = ">=3.9,<4.0"
|
||||
content-hash = "ff45241f112ccfe1ca845dfc9685f7b63d7cb0a362acffbb17d81ff4691af9d4"
|
||||
content-hash = "f1cd6241802e9ee68050d69ed38775fa26182185984cc18b30f51595dba56330"
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||
|
||||
[tool.poetry]
|
||||
name = "langchain-anthropic"
|
||||
version = "0.2.3"
|
||||
version = "0.2.4"
|
||||
description = "An integration package connecting AnthropicMessages and LangChain"
|
||||
authors = []
|
||||
readme = "README.md"
|
||||
@@ -21,7 +21,7 @@ disallow_untyped_defs = "True"
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.9,<4.0"
|
||||
anthropic = ">=0.30.0,<1"
|
||||
langchain-core = "^0.3.9"
|
||||
langchain-core = "^0.3.15"
|
||||
pydantic = "^2.7.4"
|
||||
|
||||
[tool.ruff.lint]
|
||||
|
||||
Reference in New Issue
Block a user