langchain-core 1.0.0a3__py3-none-any.whl → 1.0.0a4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of langchain-core might be problematic. Click here for more details.

@@ -48,7 +48,6 @@ from langchain_core.messages import (
48
48
  message_chunk_to_message,
49
49
  )
50
50
  from langchain_core.messages.block_translators.openai import (
51
- convert_to_openai_data_block,
52
51
  convert_to_openai_image_block,
53
52
  )
54
53
  from langchain_core.output_parsers.openai_tools import (
@@ -149,16 +148,18 @@ def _format_for_tracing(messages: list[BaseMessage]) -> list[BaseMessage]:
149
148
  block.get("type") == "file"
150
149
  and is_data_content_block(block) # v0 (image/audio/file) or v1
151
150
  and "base64" in block
152
- # Narrows to old Base64ContentBlock or new FileContentBlock
151
+ # Backward compat: convert v1 base64 blocks to v0
153
152
  ):
154
153
  if message_to_trace is message:
155
154
  # Shallow copy
156
155
  message_to_trace = message.model_copy()
157
156
  message_to_trace.content = list(message_to_trace.content)
158
157
 
159
- message_to_trace.content[idx] = convert_to_openai_data_block( # type: ignore[index]
160
- block
161
- )
158
+ message_to_trace.content[idx] = { # type: ignore[index]
159
+ **{k: v for k, v in block.items() if k != "base64"},
160
+ "data": block["base64"],
161
+ "source_type": "base64",
162
+ }
162
163
  elif len(block) == 1 and "type" not in block:
163
164
  # Tracing assumes all content blocks have a "type" key. Here
164
165
  # we add this key if it is missing, and there's an obvious
@@ -184,6 +184,9 @@ class BaseMessage(Serializable):
184
184
  from langchain_core.messages.block_translators.anthropic import ( # noqa: PLC0415
185
185
  _convert_to_v1_from_anthropic_input,
186
186
  )
187
+ from langchain_core.messages.block_translators.bedrock_converse import ( # noqa: PLC0415
188
+ _convert_to_v1_from_converse_input,
189
+ )
187
190
  from langchain_core.messages.block_translators.langchain_v0 import ( # noqa: PLC0415
188
191
  _convert_v0_multimodal_input_to_v1,
189
192
  )
@@ -214,6 +217,7 @@ class BaseMessage(Serializable):
214
217
  _convert_v0_multimodal_input_to_v1,
215
218
  _convert_to_v1_from_chat_completions_input,
216
219
  _convert_to_v1_from_anthropic_input,
220
+ _convert_to_v1_from_converse_input,
217
221
  ]:
218
222
  blocks = parsing_step(blocks)
219
223
  return blocks
@@ -2,7 +2,7 @@
2
2
 
3
3
  import json
4
4
  from collections.abc import Iterable
5
- from typing import Any, Optional, cast
5
+ from typing import Any, Optional, Union, cast
6
6
 
7
7
  from langchain_core.messages import AIMessage, AIMessageChunk
8
8
  from langchain_core.messages import content as types
@@ -17,7 +17,7 @@ def _populate_extras(
17
17
 
18
18
  for key, value in block.items():
19
19
  if key not in known_fields:
20
- if "extras" not in block:
20
+ if "extras" not in standard_block:
21
21
  # Below type-ignores are because mypy thinks a non-standard block can
22
22
  # get here, although we exclude them above.
23
23
  standard_block["extras"] = {} # type: ignore[typeddict-unknown-key]
@@ -186,10 +186,12 @@ def _convert_citation_to_v1(citation: dict[str, Any]) -> types.Annotation:
186
186
  def _convert_to_v1_from_anthropic(message: AIMessage) -> list[types.ContentBlock]:
187
187
  """Convert Anthropic message content to v1 format."""
188
188
  if isinstance(message.content, str):
189
- message.content = [{"type": "text", "text": message.content}]
189
+ content: list[Union[str, dict]] = [{"type": "text", "text": message.content}]
190
+ else:
191
+ content = message.content
190
192
 
191
193
  def _iter_blocks() -> Iterable[types.ContentBlock]:
192
- for block in message.content:
194
+ for block in content:
193
195
  if not isinstance(block, dict):
194
196
  continue
195
197
  block_type = block.get("type")
@@ -429,12 +431,12 @@ def _convert_to_v1_from_anthropic(message: AIMessage) -> list[types.ContentBlock
429
431
 
430
432
 
431
433
  def translate_content(message: AIMessage) -> list[types.ContentBlock]:
432
- """Derive standard content blocks from a message with OpenAI content."""
434
+ """Derive standard content blocks from a message with Anthropic content."""
433
435
  return _convert_to_v1_from_anthropic(message)
434
436
 
435
437
 
436
438
  def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]:
437
- """Derive standard content blocks from a message chunk with OpenAI content."""
439
+ """Derive standard content blocks from a message chunk with Anthropic content."""
438
440
  return _convert_to_v1_from_anthropic(message)
439
441
 
440
442
 
@@ -1,39 +1,86 @@
1
- """Derivations of standard content blocks from Amazon (Bedrock) content."""
2
-
3
- import warnings
1
+ """Derivations of standard content blocks from Bedrock content."""
4
2
 
5
3
  from langchain_core.messages import AIMessage, AIMessageChunk
6
4
  from langchain_core.messages import content as types
5
+ from langchain_core.messages.block_translators.anthropic import (
6
+ _convert_to_v1_from_anthropic,
7
+ )
8
+
9
+
10
+ def _convert_to_v1_from_bedrock(message: AIMessage) -> list[types.ContentBlock]:
11
+ """Convert bedrock message content to v1 format."""
12
+ out = _convert_to_v1_from_anthropic(message)
13
+
14
+ content_tool_call_ids = {
15
+ block.get("id")
16
+ for block in out
17
+ if isinstance(block, dict) and block.get("type") == "tool_call"
18
+ }
19
+ for tool_call in message.tool_calls:
20
+ if (id_ := tool_call.get("id")) and id_ not in content_tool_call_ids:
21
+ tool_call_block: types.ToolCall = {
22
+ "type": "tool_call",
23
+ "id": id_,
24
+ "name": tool_call["name"],
25
+ "args": tool_call["args"],
26
+ }
27
+ if "index" in tool_call:
28
+ tool_call_block["index"] = tool_call["index"] # type: ignore[typeddict-item]
29
+ if "extras" in tool_call:
30
+ tool_call_block["extras"] = tool_call["extras"] # type: ignore[typeddict-item]
31
+ out.append(tool_call_block)
32
+ return out
33
+
7
34
 
8
- WARNED = False
35
+ def _convert_to_v1_from_bedrock_chunk(
36
+ message: AIMessageChunk,
37
+ ) -> list[types.ContentBlock]:
38
+ """Convert bedrock message chunk content to v1 format."""
39
+ if (
40
+ message.content == ""
41
+ and not message.additional_kwargs
42
+ and not message.tool_calls
43
+ ):
44
+ # Bedrock outputs multiple chunks containing response metadata
45
+ return []
9
46
 
47
+ out = _convert_to_v1_from_anthropic(message)
10
48
 
11
- def translate_content(message: AIMessage) -> list[types.ContentBlock]: # noqa: ARG001
49
+ if (
50
+ message.tool_call_chunks
51
+ and not message.content
52
+ and message.chunk_position != "last" # keep tool_calls if aggregated
53
+ ):
54
+ for tool_call_chunk in message.tool_call_chunks:
55
+ tc: types.ToolCallChunk = {
56
+ "type": "tool_call_chunk",
57
+ "id": tool_call_chunk.get("id"),
58
+ "name": tool_call_chunk.get("name"),
59
+ "args": tool_call_chunk.get("args"),
60
+ }
61
+ if (idx := tool_call_chunk.get("index")) is not None:
62
+ tc["index"] = idx
63
+ out.append(tc)
64
+ return out
65
+
66
+
67
+ def translate_content(message: AIMessage) -> list[types.ContentBlock]:
12
68
  """Derive standard content blocks from a message with Bedrock content."""
13
- global WARNED # noqa: PLW0603
14
- if not WARNED:
15
- warning_message = (
16
- "Content block standardization is not yet fully supported for Bedrock."
17
- )
18
- warnings.warn(warning_message, stacklevel=2)
19
- WARNED = True
20
- raise NotImplementedError
21
-
22
-
23
- def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]: # noqa: ARG001
24
- """Derive standard content blocks from a chunk with Bedrock content."""
25
- global WARNED # noqa: PLW0603
26
- if not WARNED:
27
- warning_message = (
28
- "Content block standardization is not yet fully supported for Bedrock."
29
- )
30
- warnings.warn(warning_message, stacklevel=2)
31
- WARNED = True
32
- raise NotImplementedError
69
+ if "claude" not in message.response_metadata.get("model_name", "").lower():
70
+ raise NotImplementedError # fall back to best-effort parsing
71
+ return _convert_to_v1_from_bedrock(message)
72
+
73
+
74
+ def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]:
75
+ """Derive standard content blocks from a message chunk with Bedrock content."""
76
+ # TODO: add model_name to all Bedrock chunks and update core merging logic
77
+ # to not append during aggregation. Then raise NotImplementedError here if
78
+ # not an Anthropic model to fall back to best-effort parsing.
79
+ return _convert_to_v1_from_bedrock_chunk(message)
33
80
 
34
81
 
35
82
  def _register_bedrock_translator() -> None:
36
- """Register the Bedrock translator with the central registry.
83
+ """Register the bedrock translator with the central registry.
37
84
 
38
85
  Run automatically when the module is imported.
39
86
  """
@@ -1,37 +1,271 @@
1
1
  """Derivations of standard content blocks from Amazon (Bedrock Converse) content."""
2
2
 
3
- import warnings
3
+ import base64
4
+ from collections.abc import Iterable
5
+ from typing import Any, Optional, cast
4
6
 
5
7
  from langchain_core.messages import AIMessage, AIMessageChunk
6
8
  from langchain_core.messages import content as types
7
9
 
8
- WARNED = False
9
10
 
11
+ def _bytes_to_b64_str(bytes_: bytes) -> str:
12
+ return base64.b64encode(bytes_).decode("utf-8")
10
13
 
11
- def translate_content(message: AIMessage) -> list[types.ContentBlock]: # noqa: ARG001
12
- """Derive standard content blocks from a message with Bedrock Converse content."""
13
- global WARNED # noqa: PLW0603
14
- if not WARNED:
15
- warning_message = (
16
- "Content block standardization is not yet fully supported for Bedrock "
17
- "Converse."
14
+
15
+ def _populate_extras(
16
+ standard_block: types.ContentBlock, block: dict[str, Any], known_fields: set[str]
17
+ ) -> types.ContentBlock:
18
+ """Mutate a block, populating extras."""
19
+ if standard_block.get("type") == "non_standard":
20
+ return standard_block
21
+
22
+ for key, value in block.items():
23
+ if key not in known_fields:
24
+ if "extras" not in standard_block:
25
+ # Below type-ignores are because mypy thinks a non-standard block can
26
+ # get here, although we exclude them above.
27
+ standard_block["extras"] = {} # type: ignore[typeddict-unknown-key]
28
+ standard_block["extras"][key] = value # type: ignore[typeddict-item]
29
+
30
+ return standard_block
31
+
32
+
33
+ def _convert_to_v1_from_converse_input(
34
+ content: list[types.ContentBlock],
35
+ ) -> list[types.ContentBlock]:
36
+ """Attempt to unpack non-standard blocks."""
37
+
38
+ def _iter_blocks() -> Iterable[types.ContentBlock]:
39
+ blocks: list[dict[str, Any]] = [
40
+ cast("dict[str, Any]", block)
41
+ if block.get("type") != "non_standard"
42
+ else block["value"] # type: ignore[typeddict-item] # this is only non-standard blocks
43
+ for block in content
44
+ ]
45
+ for block in blocks:
46
+ num_keys = len(block)
47
+
48
+ if num_keys == 1 and (text := block.get("text")):
49
+ yield {"type": "text", "text": text}
50
+
51
+ elif (
52
+ num_keys == 1
53
+ and (document := block.get("document"))
54
+ and isinstance(document, dict)
55
+ and "format" in document
56
+ ):
57
+ if document.get("format") == "pdf":
58
+ if "bytes" in document.get("source", {}):
59
+ file_block: types.FileContentBlock = {
60
+ "type": "file",
61
+ "base64": _bytes_to_b64_str(document["source"]["bytes"]),
62
+ "mime_type": "application/pdf",
63
+ }
64
+ _populate_extras(file_block, document, {"format", "source"})
65
+ yield file_block
66
+
67
+ else:
68
+ yield {"type": "non_standard", "value": block}
69
+
70
+ elif document["format"] == "txt":
71
+ if "text" in document.get("source", {}):
72
+ plain_text_block: types.PlainTextContentBlock = {
73
+ "type": "text-plain",
74
+ "text": document["source"]["text"],
75
+ "mime_type": "text/plain",
76
+ }
77
+ _populate_extras(
78
+ plain_text_block, document, {"format", "source"}
79
+ )
80
+ yield plain_text_block
81
+ else:
82
+ yield {"type": "non_standard", "value": block}
83
+
84
+ else:
85
+ yield {"type": "non_standard", "value": block}
86
+
87
+ elif (
88
+ num_keys == 1
89
+ and (image := block.get("image"))
90
+ and isinstance(image, dict)
91
+ and "format" in image
92
+ ):
93
+ if "bytes" in image.get("source", {}):
94
+ image_block: types.ImageContentBlock = {
95
+ "type": "image",
96
+ "base64": _bytes_to_b64_str(image["source"]["bytes"]),
97
+ "mime_type": f"image/{image['format']}",
98
+ }
99
+ _populate_extras(image_block, image, {"format", "source"})
100
+ yield image_block
101
+
102
+ else:
103
+ yield {"type": "non_standard", "value": block}
104
+
105
+ elif block.get("type") in types.KNOWN_BLOCK_TYPES:
106
+ yield cast("types.ContentBlock", block)
107
+
108
+ else:
109
+ yield {"type": "non_standard", "value": block}
110
+
111
+ return list(_iter_blocks())
112
+
113
+
114
+ def _convert_citation_to_v1(citation: dict[str, Any]) -> types.Annotation:
115
+ standard_citation: types.Citation = {"type": "citation"}
116
+ if "title" in citation:
117
+ standard_citation["title"] = citation["title"]
118
+ if (
119
+ (source_content := citation.get("source_content"))
120
+ and isinstance(source_content, list)
121
+ and all(isinstance(item, dict) for item in source_content)
122
+ ):
123
+ standard_citation["cited_text"] = "".join(
124
+ item.get("text", "") for item in source_content
18
125
  )
19
- warnings.warn(warning_message, stacklevel=2)
20
- WARNED = True
21
- raise NotImplementedError
22
126
 
127
+ known_fields = {"type", "source_content", "title", "index", "extras"}
23
128
 
24
- def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]: # noqa: ARG001
129
+ for key, value in citation.items():
130
+ if key not in known_fields:
131
+ if "extras" not in standard_citation:
132
+ standard_citation["extras"] = {}
133
+ standard_citation["extras"][key] = value
134
+
135
+ return standard_citation
136
+
137
+
138
+ def _convert_to_v1_from_converse(message: AIMessage) -> list[types.ContentBlock]:
139
+ """Convert Bedrock Converse message content to v1 format."""
140
+ if (
141
+ message.content == ""
142
+ and not message.additional_kwargs
143
+ and not message.tool_calls
144
+ ):
145
+ # Converse outputs multiple chunks containing response metadata
146
+ return []
147
+
148
+ if isinstance(message.content, str):
149
+ message.content = [{"type": "text", "text": message.content}]
150
+
151
+ def _iter_blocks() -> Iterable[types.ContentBlock]:
152
+ for block in message.content:
153
+ if not isinstance(block, dict):
154
+ continue
155
+ block_type = block.get("type")
156
+
157
+ if block_type == "text":
158
+ if citations := block.get("citations"):
159
+ text_block: types.TextContentBlock = {
160
+ "type": "text",
161
+ "text": block.get("text", ""),
162
+ "annotations": [_convert_citation_to_v1(a) for a in citations],
163
+ }
164
+ else:
165
+ text_block = {"type": "text", "text": block["text"]}
166
+ if "index" in block:
167
+ text_block["index"] = block["index"]
168
+ yield text_block
169
+
170
+ elif block_type == "reasoning_content":
171
+ reasoning_block: types.ReasoningContentBlock = {"type": "reasoning"}
172
+ if reasoning_content := block.get("reasoning_content"):
173
+ if reasoning := reasoning_content.get("text"):
174
+ reasoning_block["reasoning"] = reasoning
175
+ if signature := reasoning_content.get("signature"):
176
+ if "extras" not in reasoning_block:
177
+ reasoning_block["extras"] = {}
178
+ reasoning_block["extras"]["signature"] = signature
179
+
180
+ if "index" in block:
181
+ reasoning_block["index"] = block["index"]
182
+
183
+ known_fields = {"type", "reasoning_content", "index", "extras"}
184
+ for key in block:
185
+ if key not in known_fields:
186
+ if "extras" not in reasoning_block:
187
+ reasoning_block["extras"] = {}
188
+ reasoning_block["extras"][key] = block[key]
189
+ yield reasoning_block
190
+
191
+ elif block_type == "tool_use":
192
+ if (
193
+ isinstance(message, AIMessageChunk)
194
+ and len(message.tool_call_chunks) == 1
195
+ and message.chunk_position != "last"
196
+ ):
197
+ # Isolated chunk
198
+ tool_call_chunk: types.ToolCallChunk = (
199
+ message.tool_call_chunks[0].copy() # type: ignore[assignment]
200
+ )
201
+ if "type" not in tool_call_chunk:
202
+ tool_call_chunk["type"] = "tool_call_chunk"
203
+ yield tool_call_chunk
204
+ else:
205
+ tool_call_block: Optional[types.ToolCall] = None
206
+ # Non-streaming or gathered chunk
207
+ if len(message.tool_calls) == 1:
208
+ tool_call_block = {
209
+ "type": "tool_call",
210
+ "name": message.tool_calls[0]["name"],
211
+ "args": message.tool_calls[0]["args"],
212
+ "id": message.tool_calls[0].get("id"),
213
+ }
214
+ elif call_id := block.get("id"):
215
+ for tc in message.tool_calls:
216
+ if tc.get("id") == call_id:
217
+ tool_call_block = {
218
+ "type": "tool_call",
219
+ "name": tc["name"],
220
+ "args": tc["args"],
221
+ "id": tc.get("id"),
222
+ }
223
+ break
224
+ else:
225
+ pass
226
+ if not tool_call_block:
227
+ tool_call_block = {
228
+ "type": "tool_call",
229
+ "name": block.get("name", ""),
230
+ "args": block.get("input", {}),
231
+ "id": block.get("id", ""),
232
+ }
233
+ if "index" in block:
234
+ tool_call_block["index"] = block["index"]
235
+ yield tool_call_block
236
+
237
+ elif (
238
+ block_type == "input_json_delta"
239
+ and isinstance(message, AIMessageChunk)
240
+ and len(message.tool_call_chunks) == 1
241
+ ):
242
+ tool_call_chunk = (
243
+ message.tool_call_chunks[0].copy() # type: ignore[assignment]
244
+ )
245
+ if "type" not in tool_call_chunk:
246
+ tool_call_chunk["type"] = "tool_call_chunk"
247
+ yield tool_call_chunk
248
+
249
+ else:
250
+ new_block: types.NonStandardContentBlock = {
251
+ "type": "non_standard",
252
+ "value": block,
253
+ }
254
+ if "index" in new_block["value"]:
255
+ new_block["index"] = new_block["value"].pop("index")
256
+ yield new_block
257
+
258
+ return list(_iter_blocks())
259
+
260
+
261
+ def translate_content(message: AIMessage) -> list[types.ContentBlock]:
262
+ """Derive standard content blocks from a message with Bedrock Converse content."""
263
+ return _convert_to_v1_from_converse(message)
264
+
265
+
266
+ def translate_content_chunk(message: AIMessageChunk) -> list[types.ContentBlock]:
25
267
  """Derive standard content blocks from a chunk with Bedrock Converse content."""
26
- global WARNED # noqa: PLW0603
27
- if not WARNED:
28
- warning_message = (
29
- "Content block standardization is not yet fully supported for Bedrock "
30
- "Converse."
31
- )
32
- warnings.warn(warning_message, stacklevel=2)
33
- WARNED = True
34
- raise NotImplementedError
268
+ return _convert_to_v1_from_converse(message)
35
269
 
36
270
 
37
271
  def _register_bedrock_converse_translator() -> None:
langchain_core/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """langchain-core version information and utilities."""
2
2
 
3
- VERSION = "1.0.0a3"
3
+ VERSION = "1.0.0a4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langchain-core
3
- Version: 1.0.0a3
3
+ Version: 1.0.0a4
4
4
  Summary: Building applications with LLMs through composability
5
5
  License: MIT
6
6
  Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/core
@@ -1,6 +1,6 @@
1
- langchain_core-1.0.0a3.dist-info/METADATA,sha256=k94vpJybgVViNdkf_q3-vsyfxcOzOoZ5iN4zgzC1-cQ,3726
2
- langchain_core-1.0.0a3.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- langchain_core-1.0.0a3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
1
+ langchain_core-1.0.0a4.dist-info/METADATA,sha256=-tXk2RBgmDu2EVJiVOTxeLUsjjDETU0EMm0EzS9ec9U,3726
2
+ langchain_core-1.0.0a4.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ langchain_core-1.0.0a4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
4
  langchain_core/__init__.py,sha256=TgvhxbrjCRVJwr2HddiyHvtH8W94K-uLM6-6ifNIBXo,713
5
5
  langchain_core/_api/__init__.py,sha256=WDOMw4faVuscjDCL5ttnRQNienJP_M9vGMmJUXS6L5w,1976
6
6
  langchain_core/_api/beta_decorator.py,sha256=LM5C32LB7_KNLfePssM2hgFRt7aPvqddf9J_TiOWIsw,8877
@@ -45,7 +45,7 @@ langchain_core/indexing/in_memory.py,sha256=YPVOGKE3d5-APCy7T0sJvSPjJJUcshSfPeCp
45
45
  langchain_core/language_models/__init__.py,sha256=UATdO6Ap7_UdEHv_sCNxXj_b20-LPDDZJnFkA7zazk8,3901
46
46
  langchain_core/language_models/_utils.py,sha256=L5isJ4pHLLPuPjsEjhAC5f2Lxgn_XuYyr-kmqFdzTpU,11164
47
47
  langchain_core/language_models/base.py,sha256=35rt7Io4_nMztFaQ3c2iukSdVsDDL2q6u4ETvgdWV_c,14583
48
- langchain_core/language_models/chat_models.py,sha256=timWQlovkW4P7u0O8EXy7XWlwUL4zZhA8qiuw4vyTJo,79654
48
+ langchain_core/language_models/chat_models.py,sha256=pCVAzGYFOFYTTm6YrVkcpxAG88M0AVduAkV_s2gSJWU,79735
49
49
  langchain_core/language_models/fake.py,sha256=h9LhVTkmYLXkJ1_VvsKhqYVpkQsM7eAr9geXF_IVkPs,3772
50
50
  langchain_core/language_models/fake_chat_models.py,sha256=nbPFjZ4JSL2-OxKJjJFo39LTehciFZR6Usj5cstDME0,13496
51
51
  langchain_core/language_models/llms.py,sha256=wWmMcAJbQYyFBFrXxy2wkNDS4eEv63HwiJLfsOzKFzU,58049
@@ -57,11 +57,11 @@ langchain_core/load/serializable.py,sha256=P29Coe7ZE8-13goAmAtSt0rl85fKaUd96znRQ
57
57
  langchain_core/memory.py,sha256=bYgZGSldIa79GqpEd2m9Ve78euCq6SJatzTsHAHKosk,3693
58
58
  langchain_core/messages/__init__.py,sha256=y4HmwOTSPex6Py9fo7NPPBf82O_MkdgTUw5uj1f_gmg,6048
59
59
  langchain_core/messages/ai.py,sha256=kHFdWpswJ_H9XLY2YkmJ5jCQc11_15Op4YjjvGrGmMI,24629
60
- langchain_core/messages/base.py,sha256=3e4RNutCZfo3KJfoVrdmKt0hPxt79yM-M_aZuytMwlg,14909
60
+ langchain_core/messages/base.py,sha256=ZUlWULLAe2hdfXo1YNJhfVUJhaQFnTFnT4uN5DzO8Xg,15113
61
61
  langchain_core/messages/block_translators/__init__.py,sha256=bBWL_RoZWfy7MZzRmKGZihbZpJ61LO-GMtQiGizRjqc,3255
62
- langchain_core/messages/block_translators/anthropic.py,sha256=5O-OkOUAX0iReOSRIxCiTOs6xAnITyFgPyKmHwzSyIo,19221
63
- langchain_core/messages/block_translators/bedrock.py,sha256=I71rdoi6D0V4TPTMV4kU_wIEp6WybgBfXrLZkYnzo0Y,1527
64
- langchain_core/messages/block_translators/bedrock_converse.py,sha256=M2EhLQHmNGGHRJHCIzYWWktTQDIZhvlFDIl-6LrhpgA,1638
62
+ langchain_core/messages/block_translators/anthropic.py,sha256=U6MQoNxexcCM_XhkbJ4KT_zNtlJgGPjpXSwWVJ2dBIU,19295
63
+ langchain_core/messages/block_translators/bedrock.py,sha256=yLjYwtCsYGHBEj9CSXHCZYLmwsA4F6D6NTT5kE11Bww,3511
64
+ langchain_core/messages/block_translators/bedrock_converse.py,sha256=iCdqDUJmwRPUiaKuVOh6vHB-YBdwHhDjY93B80iKyps,11465
65
65
  langchain_core/messages/block_translators/google_genai.py,sha256=C_ug4rlO93alzoH14FCsk6temXJZrTXoEx2_AfGfZhk,1571
66
66
  langchain_core/messages/block_translators/google_vertexai.py,sha256=spEuRU1tFsmQvIlHdrQgDswDP5XSQr0-5qgW8x47vXQ,1628
67
67
  langchain_core/messages/block_translators/groq.py,sha256=8Iw_HSZM00MZQTrvlZucxSJ2bbx9gvkxR-SU_mjuJk8,1499
@@ -177,5 +177,5 @@ langchain_core/vectorstores/__init__.py,sha256=5P0eoeoH5LHab64JjmEeWa6SxX4eMy-et
177
177
  langchain_core/vectorstores/base.py,sha256=nWlfzbkVdOObfbPpvfdLKHw9J0PryACVohHC_Y6wWZM,41529
178
178
  langchain_core/vectorstores/in_memory.py,sha256=ye4hGrj1ZlZsFHQx0Pbn_pvVAJ4F3ENLY74x4oU_FkY,18137
179
179
  langchain_core/vectorstores/utils.py,sha256=D6St53Xg1kO73dnw4MPd8vlkro4C3gmCpcghUzcepi0,4971
180
- langchain_core/version.py,sha256=A39mxvDADQ-V2kWGTQvaBcNYLKxxEZ79po6fYefkO6M,77
181
- langchain_core-1.0.0a3.dist-info/RECORD,,
180
+ langchain_core/version.py,sha256=529yKwZZh0pt1x5uDsBqsAkZTXltHSchWQYxzAIlqkw,77
181
+ langchain_core-1.0.0a4.dist-info/RECORD,,