langchain-core 1.0.3__py3-none-any.whl → 1.0.4__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.
Files changed (40) hide show
  1. langchain_core/agents.py +36 -27
  2. langchain_core/callbacks/manager.py +18 -1
  3. langchain_core/callbacks/usage.py +2 -2
  4. langchain_core/documents/base.py +6 -6
  5. langchain_core/example_selectors/length_based.py +1 -1
  6. langchain_core/indexing/api.py +6 -6
  7. langchain_core/language_models/_utils.py +1 -1
  8. langchain_core/language_models/base.py +37 -18
  9. langchain_core/language_models/chat_models.py +44 -28
  10. langchain_core/language_models/llms.py +66 -36
  11. langchain_core/messages/ai.py +3 -3
  12. langchain_core/messages/base.py +1 -1
  13. langchain_core/messages/content.py +2 -2
  14. langchain_core/messages/utils.py +12 -8
  15. langchain_core/output_parsers/openai_tools.py +14 -2
  16. langchain_core/outputs/generation.py +6 -5
  17. langchain_core/prompt_values.py +2 -2
  18. langchain_core/prompts/base.py +47 -44
  19. langchain_core/prompts/chat.py +35 -28
  20. langchain_core/prompts/dict.py +1 -1
  21. langchain_core/prompts/message.py +4 -4
  22. langchain_core/runnables/base.py +97 -52
  23. langchain_core/runnables/branch.py +22 -20
  24. langchain_core/runnables/configurable.py +30 -29
  25. langchain_core/runnables/fallbacks.py +22 -20
  26. langchain_core/runnables/graph_mermaid.py +4 -1
  27. langchain_core/runnables/graph_png.py +28 -0
  28. langchain_core/runnables/history.py +43 -32
  29. langchain_core/runnables/passthrough.py +35 -25
  30. langchain_core/runnables/router.py +5 -5
  31. langchain_core/runnables/schema.py +1 -1
  32. langchain_core/sys_info.py +4 -2
  33. langchain_core/tools/base.py +22 -16
  34. langchain_core/utils/function_calling.py +9 -6
  35. langchain_core/utils/input.py +3 -0
  36. langchain_core/utils/pydantic.py +2 -2
  37. langchain_core/version.py +1 -1
  38. {langchain_core-1.0.3.dist-info → langchain_core-1.0.4.dist-info}/METADATA +1 -1
  39. {langchain_core-1.0.3.dist-info → langchain_core-1.0.4.dist-info}/RECORD +40 -40
  40. {langchain_core-1.0.3.dist-info → langchain_core-1.0.4.dist-info}/WHEEL +0 -0
@@ -40,11 +40,11 @@ class RouterInput(TypedDict):
40
40
  key: str
41
41
  """The key to route on."""
42
42
  input: Any
43
- """The input to pass to the selected Runnable."""
43
+ """The input to pass to the selected `Runnable`."""
44
44
 
45
45
 
46
46
  class RouterRunnable(RunnableSerializable[RouterInput, Output]):
47
- """Runnable that routes to a set of Runnables based on Input['key'].
47
+ """`Runnable` that routes to a set of `Runnable` based on `Input['key']`.
48
48
 
49
49
  Returns the output of the selected Runnable.
50
50
 
@@ -74,10 +74,10 @@ class RouterRunnable(RunnableSerializable[RouterInput, Output]):
74
74
  self,
75
75
  runnables: Mapping[str, Runnable[Any, Output] | Callable[[Any], Output]],
76
76
  ) -> None:
77
- """Create a RouterRunnable.
77
+ """Create a `RouterRunnable`.
78
78
 
79
79
  Args:
80
- runnables: A mapping of keys to Runnables.
80
+ runnables: A mapping of keys to `Runnable` objects.
81
81
  """
82
82
  super().__init__(
83
83
  runnables={key: coerce_to_runnable(r) for key, r in runnables.items()}
@@ -90,7 +90,7 @@ class RouterRunnable(RunnableSerializable[RouterInput, Output]):
90
90
  @classmethod
91
91
  @override
92
92
  def is_lc_serializable(cls) -> bool:
93
- """Return True as this class is serializable."""
93
+ """Return `True` as this class is serializable."""
94
94
  return True
95
95
 
96
96
  @classmethod
@@ -28,7 +28,7 @@ class EventData(TypedDict, total=False):
28
28
 
29
29
  This field is only available if the `Runnable` raised an exception.
30
30
 
31
- !!! version-added "Added in version 1.0.0"
31
+ !!! version-added "Added in `langchain-core` 1.0.0"
32
32
  """
33
33
  output: Any
34
34
  """The output of the `Runnable` that generated the event.
@@ -125,9 +125,11 @@ def print_sys_info(*, additional_pkgs: Sequence[str] = ()) -> None:
125
125
  for dep in sub_dependencies:
126
126
  try:
127
127
  dep_version = metadata.version(dep)
128
- print(f"> {dep}: {dep_version}")
129
128
  except Exception:
130
- print(f"> {dep}: Installed. No version info available.")
129
+ dep_version = None
130
+
131
+ if dep_version is not None:
132
+ print(f"> {dep}: {dep_version}")
131
133
 
132
134
 
133
135
  if __name__ == "__main__":
@@ -872,16 +872,19 @@ class ChildTool(BaseTool):
872
872
  tool_kwargs |= {config_param: config}
873
873
  response = context.run(self._run, *tool_args, **tool_kwargs)
874
874
  if self.response_format == "content_and_artifact":
875
- if not isinstance(response, tuple) or len(response) != 2:
876
- msg = (
877
- "Since response_format='content_and_artifact' "
878
- "a two-tuple of the message content and raw tool output is "
879
- f"expected. Instead generated response of type: "
880
- f"{type(response)}."
881
- )
875
+ msg = (
876
+ "Since response_format='content_and_artifact' "
877
+ "a two-tuple of the message content and raw tool output is "
878
+ f"expected. Instead, generated response is of type: "
879
+ f"{type(response)}."
880
+ )
881
+ if not isinstance(response, tuple):
882
882
  error_to_raise = ValueError(msg)
883
883
  else:
884
- content, artifact = response
884
+ try:
885
+ content, artifact = response
886
+ except ValueError:
887
+ error_to_raise = ValueError(msg)
885
888
  else:
886
889
  content = response
887
890
  except (ValidationError, ValidationErrorV1) as e:
@@ -998,16 +1001,19 @@ class ChildTool(BaseTool):
998
1001
  coro = self._arun(*tool_args, **tool_kwargs)
999
1002
  response = await coro_with_context(coro, context)
1000
1003
  if self.response_format == "content_and_artifact":
1001
- if not isinstance(response, tuple) or len(response) != 2:
1002
- msg = (
1003
- "Since response_format='content_and_artifact' "
1004
- "a two-tuple of the message content and raw tool output is "
1005
- f"expected. Instead generated response of type: "
1006
- f"{type(response)}."
1007
- )
1004
+ msg = (
1005
+ "Since response_format='content_and_artifact' "
1006
+ "a two-tuple of the message content and raw tool output is "
1007
+ f"expected. Instead, generated response is of type: "
1008
+ f"{type(response)}."
1009
+ )
1010
+ if not isinstance(response, tuple):
1008
1011
  error_to_raise = ValueError(msg)
1009
1012
  else:
1010
- content, artifact = response
1013
+ try:
1014
+ content, artifact = response
1015
+ except ValueError:
1016
+ error_to_raise = ValueError(msg)
1011
1017
  else:
1012
1018
  content = response
1013
1019
  except ValidationError as e:
@@ -351,7 +351,7 @@ def convert_to_openai_function(
351
351
  Raises:
352
352
  ValueError: If function is not in a supported format.
353
353
 
354
- !!! warning "Behavior changed in 0.3.16"
354
+ !!! warning "Behavior changed in `langchain-core` 0.3.16"
355
355
  `description` and `parameters` keys are now optional. Only `name` is
356
356
  required and guaranteed to be part of the output.
357
357
  """
@@ -412,7 +412,7 @@ def convert_to_openai_function(
412
412
  if strict is not None:
413
413
  if "strict" in oai_function and oai_function["strict"] != strict:
414
414
  msg = (
415
- f"Tool/function already has a 'strict' key wth value "
415
+ f"Tool/function already has a 'strict' key with value "
416
416
  f"{oai_function['strict']} which is different from the explicit "
417
417
  f"`strict` arg received {strict=}."
418
418
  )
@@ -475,16 +475,16 @@ def convert_to_openai_tool(
475
475
  A dict version of the passed in tool which is compatible with the
476
476
  OpenAI tool-calling API.
477
477
 
478
- !!! warning "Behavior changed in 0.3.16"
478
+ !!! warning "Behavior changed in `langchain-core` 0.3.16"
479
479
  `description` and `parameters` keys are now optional. Only `name` is
480
480
  required and guaranteed to be part of the output.
481
481
 
482
- !!! warning "Behavior changed in 0.3.44"
482
+ !!! warning "Behavior changed in `langchain-core` 0.3.44"
483
483
  Return OpenAI Responses API-style tools unchanged. This includes
484
484
  any dict with `"type"` in `"file_search"`, `"function"`,
485
485
  `"computer_use_preview"`, `"web_search_preview"`.
486
486
 
487
- !!! warning "Behavior changed in 0.3.63"
487
+ !!! warning "Behavior changed in `langchain-core` 0.3.63"
488
488
  Added support for OpenAI's image generation built-in tool.
489
489
  """
490
490
  # Import locally to prevent circular import
@@ -653,6 +653,9 @@ def tool_example_to_messages(
653
653
  return messages
654
654
 
655
655
 
656
+ _MIN_DOCSTRING_BLOCKS = 2
657
+
658
+
656
659
  def _parse_google_docstring(
657
660
  docstring: str | None,
658
661
  args: list[str],
@@ -671,7 +674,7 @@ def _parse_google_docstring(
671
674
  arg for arg in args if arg not in {"run_manager", "callbacks", "return"}
672
675
  }
673
676
  if filtered_annotations and (
674
- len(docstring_blocks) < 2
677
+ len(docstring_blocks) < _MIN_DOCSTRING_BLOCKS
675
678
  or not any(block.startswith("Args:") for block in docstring_blocks[1:])
676
679
  ):
677
680
  msg = "Found invalid Google-Style docstring."
@@ -26,6 +26,9 @@ def get_color_mapping(
26
26
  colors = list(_TEXT_COLOR_MAPPING.keys())
27
27
  if excluded_colors is not None:
28
28
  colors = [c for c in colors if c not in excluded_colors]
29
+ if not colors:
30
+ msg = "No colors available after applying exclusions."
31
+ raise ValueError(msg)
29
32
  return {item: colors[i % len(colors)] for i, item in enumerate(items)}
30
33
 
31
34
 
@@ -65,8 +65,8 @@ def get_pydantic_major_version() -> int:
65
65
  PYDANTIC_MAJOR_VERSION = PYDANTIC_VERSION.major
66
66
  PYDANTIC_MINOR_VERSION = PYDANTIC_VERSION.minor
67
67
 
68
- IS_PYDANTIC_V1 = PYDANTIC_VERSION.major == 1
69
- IS_PYDANTIC_V2 = PYDANTIC_VERSION.major == 2
68
+ IS_PYDANTIC_V1 = False
69
+ IS_PYDANTIC_V2 = True
70
70
 
71
71
  PydanticBaseModel = BaseModel
72
72
  TypeBaseModel = type[BaseModel]
langchain_core/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """langchain-core version information and utilities."""
2
2
 
3
- VERSION = "1.0.3"
3
+ VERSION = "1.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langchain-core
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Building applications with LLMs through composability
5
5
  Project-URL: Homepage, https://docs.langchain.com/
6
6
  Project-URL: Documentation, https://reference.langchain.com/python/langchain_core/
@@ -1,6 +1,6 @@
1
1
  langchain_core/__init__.py,sha256=5oThb0zpZmmoQFL0jqYB3GgBrXAJUSj5ZJ2GwVnR7IQ,711
2
2
  langchain_core/_import_utils.py,sha256=PdYzgXd1wraCcECcMvJQpthmN3i__5h7mYVmFyLpq_s,1423
3
- langchain_core/agents.py,sha256=ENr3LSypLl9zU64MkaZbCNwuzmxz0NRSI37bXXUx6vA,8364
3
+ langchain_core/agents.py,sha256=rDGe9yGoJ58oimbSYS-AHIEdNYmMcP2qkOBT6hv1YlA,8411
4
4
  langchain_core/caches.py,sha256=1KMHqAR79--0QfHkShgROFhY1iySKbRCg0J1TnQccXY,9704
5
5
  langchain_core/chat_history.py,sha256=4qHGs0z4pQBHhQHX6kypGZu1GxcM76yn6gGaOe-uZ0w,8475
6
6
  langchain_core/chat_loaders.py,sha256=b57Gl3KGPxq9gYJjetsHfJm1I6kSqi7bDE91fJJOR84,601
@@ -8,14 +8,14 @@ langchain_core/chat_sessions.py,sha256=YEO3ck5_wRGd3a2EnGD7M_wTvNC_4T1IVjQWekagw
8
8
  langchain_core/env.py,sha256=RHExSWJ2bW-6Wxb6UyBGxU5flLoNYOAeslZ9iTjomQE,598
9
9
  langchain_core/exceptions.py,sha256=z6EngfvINRQkIBWDfK6JE5CvAM8pfun1MOBWuPLqRVk,3340
10
10
  langchain_core/globals.py,sha256=jO27FstGK1cyzNT096GD9lFq2YgNxY1DZ6NtA_yKdR8,1852
11
- langchain_core/prompt_values.py,sha256=WMZITY5TN-7Vv4uOS5B5XO0q5HC1ZxcbhTfXsLbtg7M,3844
11
+ langchain_core/prompt_values.py,sha256=K1GsNqDsE6X3vlyl7JCz-zAdpKn4v3z8RmEVglEAsfQ,3846
12
12
  langchain_core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  langchain_core/rate_limiters.py,sha256=_4yijdFLvg0Qw7gNvXcKsystymJrgS76vUwRIgVSnjY,9379
14
14
  langchain_core/retrievers.py,sha256=SXnCc_85rNcLeMa-SjvkijXpFw-I7SVTWYgV1gJQimg,11125
15
15
  langchain_core/stores.py,sha256=g8aa_VvXf93-Q25QMXX_sBoKC99nu3FtyC4INOUJ3WY,9181
16
16
  langchain_core/structured_query.py,sha256=mat7BKovKjckzMn3-I1El49yeGjg3cqk4ptpJHAPA-4,5123
17
- langchain_core/sys_info.py,sha256=7BEle6I6WQIXNcNFGM6RxF9wNMVysjLpdlNACBC4CrA,3803
18
- langchain_core/version.py,sha256=ciLpmekNVuU1oUqEuBABCI31lns9aRlbQv8RgrHeZRE,75
17
+ langchain_core/sys_info.py,sha256=SEFI7XL2qpx1lis6cB45o6ZKtRCZWVXwEngU3UGMgrE,3806
18
+ langchain_core/version.py,sha256=jsSUK0COG4FbOhVVZciwojkcMijh4NASlpjwDN7HBpA,75
19
19
  langchain_core/_api/__init__.py,sha256=PYm_j7qRRKh5ca0TTra5UF-nko3ieZZZ5EeAFAinm3o,1973
20
20
  langchain_core/_api/beta_decorator.py,sha256=IJgG2_kRb2eBmvHfarDjanJY4k1jwoPJWSOHZ5SLB4U,8664
21
21
  langchain_core/_api/deprecation.py,sha256=nReAhxZ1dBwLhHdGAaqqRpf7aLQJ1dw4UtqmrRqeNLE,20296
@@ -24,16 +24,16 @@ langchain_core/_api/path.py,sha256=y3dAvsG4JS0BuWErpJ5KhxCykJX2i03kYdeDU-Iup3Y,1
24
24
  langchain_core/callbacks/__init__.py,sha256=8FK0gmkWnbDYWrShBQowg0OK06Hprdim3sxiOla80xk,4225
25
25
  langchain_core/callbacks/base.py,sha256=I0LBEFdUiFKxya1G4026Fp47Uz3qfcgg8pCr28-UQL0,34017
26
26
  langchain_core/callbacks/file.py,sha256=eD1TBPnEzms0amUV_GnNbfLOPF7Et7Z-sCv6fl-7h38,8332
27
- langchain_core/callbacks/manager.py,sha256=ZhjlLUVSCI_WF_7q9xNIbGnuKrWOLf8bdILAg98XMz8,84512
27
+ langchain_core/callbacks/manager.py,sha256=w5PuRBT9VwLmOSj-ZJ57ZXDGjxPtCCSOquWM2xUtlpY,85312
28
28
  langchain_core/callbacks/stdout.py,sha256=dy7jTcYFVKpaYesJoakEcAraBLwhjFR5Efjw91EZY8c,3695
29
29
  langchain_core/callbacks/streaming_stdout.py,sha256=ylgpp4Bhs5Gv1aNeZWuuC2FU7C3IO7Q9CpEDxCgdFXY,4310
30
- langchain_core/callbacks/usage.py,sha256=e5sr_w3ml3n5DTRaJEB0KNu_LqVZHe_XVuvkGfVhF3Q,5055
30
+ langchain_core/callbacks/usage.py,sha256=NGtm_P287FAEGXd6Ci4ZGouywYtNwsoHKno6O9H_zg8,5073
31
31
  langchain_core/document_loaders/__init__.py,sha256=DkZPp9cEVmsnz9SM1xtuefH_fGQFvA2WtpRG6iePPBs,975
32
32
  langchain_core/document_loaders/base.py,sha256=jxmjKXl4mu5EaHwzSrQgNMz7HH2PNvj5RKSrdTXvXDs,4764
33
33
  langchain_core/document_loaders/blob_loaders.py,sha256=9u5VaQ7hNrdzO2fKCJsUZecQQg6FU50D43TSvFr7sD4,1079
34
34
  langchain_core/document_loaders/langsmith.py,sha256=Vmz_cBSTZzKDDVFXrz26PtUTtSky7Vz6rJ9LfT_CeaE,5258
35
35
  langchain_core/documents/__init__.py,sha256=c2DA_AHhYVFQQxbyujXl3Uu4w3hJkWpWWoXNOKbwz00,1940
36
- langchain_core/documents/base.py,sha256=wZEN1cJgBWxSvYmo5v1s-UyBca10NLzPVakA4AAx99E,11091
36
+ langchain_core/documents/base.py,sha256=P9Zt75YL40nNFhZ9w0B-1EzjFlsCkOymsCpCti2SABc,11099
37
37
  langchain_core/documents/compressor.py,sha256=2y-Vyf9woO4rSJ2W8mcdE5XDANVgfkWU0pLGJmmPvhw,2017
38
38
  langchain_core/documents/transformers.py,sha256=wtwHxIPVYXM-_XmCP9K3NpUhquUoB6y2PFg6MKYbbnI,2543
39
39
  langchain_core/embeddings/__init__.py,sha256=0SfcdkVSSXmTFXznUyeZq_b1ajpwIGDueGAAfwyMpUY,774
@@ -41,35 +41,35 @@ langchain_core/embeddings/embeddings.py,sha256=u50T2VxLLyfGBCKcVtWfSiZrtKua8sOSH
41
41
  langchain_core/embeddings/fake.py,sha256=PCpx32UPKRZzdBjVCzLFM-qTd3CsoLhIM1QTjCGash0,3886
42
42
  langchain_core/example_selectors/__init__.py,sha256=k8y0chtEhaHf8Y1_nZVDsb9CWDdRIWFb9U806mnbGvo,1394
43
43
  langchain_core/example_selectors/base.py,sha256=4wRCERHak6Ci5JEKHeidQ_pbBgzQyc-vnQsz2sqBFzA,1716
44
- langchain_core/example_selectors/length_based.py,sha256=THlN8aPzR59tfwNgGwrC6EtgR4bsOSqh1uK_oycIfpU,3384
44
+ langchain_core/example_selectors/length_based.py,sha256=IcM89ho2xmFLan2-wL29YyUfRwSCg4z8hWLqerx-YSc,3366
45
45
  langchain_core/example_selectors/semantic_similarity.py,sha256=Rh_-8vZi58gwn7Qa3Tk30zsvx7RiPIjFWw2_sfwKHfQ,13577
46
46
  langchain_core/indexing/__init__.py,sha256=KD9ArRpfVccb1fyk2t1QWqrBv1dfyk_Zg9fuSt-BzLQ,1276
47
- langchain_core/indexing/api.py,sha256=IYKc0-4tZE1EjAHKdE8NZE4b-1OlACFe2RdvbRI90SA,38311
47
+ langchain_core/indexing/api.py,sha256=ci6jS21Fxi63tszZR0EvRq8pHLedW1dIaL0srMgUIUE,38381
48
48
  langchain_core/indexing/base.py,sha256=rHZNecyskIjRR8L4B5Q-XQgeoVZFI1HUjfox_ExIebM,22449
49
49
  langchain_core/indexing/in_memory.py,sha256=eML8Wtg9m4nOI7RFdoyXWxgxSfrOCEUJn-ipoRbkJOc,3283
50
50
  langchain_core/language_models/__init__.py,sha256=vhD0sTo9w2VKoR63NojWywv8jfoJEcP6inIkNtY6qa0,3296
51
- langchain_core/language_models/_utils.py,sha256=c75LzNP5OEimbTIYpqNYQFy1uyHaLwuKhCJzucl84bE,11028
52
- langchain_core/language_models/base.py,sha256=qPc6oJeNdhqWADJtUj0UaG4oYyYmqBeKzcVD0R-vX5c,10905
53
- langchain_core/language_models/chat_models.py,sha256=8hxZCyJLiRjTyT7r-ohF-JZoIwtDwiKFN5a2IvTbXTs,72259
51
+ langchain_core/language_models/_utils.py,sha256=6Xpqb0fO4KKnA6mX5XfHbmm2xs2TizcqVGfxaj42sOA,11045
52
+ langchain_core/language_models/base.py,sha256=Srzk6Rp4XIAMXHYU2cSbbceFKytuXHU4Y9jgaVSIXJQ,11014
53
+ langchain_core/language_models/chat_models.py,sha256=KuMG91oqZL3dMSf1qRBtY3R6WyI3WVqDF8PqFiJ8a0E,72405
54
54
  langchain_core/language_models/fake.py,sha256=hb2yU3snYPTueZiJ-0KI0MKHYBNm6zdUw7xe8WqguEY,3732
55
55
  langchain_core/language_models/fake_chat_models.py,sha256=kzvrYAI6gVaY76PPTApMWTn8ZCgJymOPsUaPZLlali4,13509
56
- langchain_core/language_models/llms.py,sha256=ESrDdKHbHu75P331SGorqTDYuLc7kQ6Bf1ATle9cif0,53942
56
+ langchain_core/language_models/llms.py,sha256=7nCj0J38aFF--ATYab7e4GZNnlRjxBrLmFu6Rwa9dh4,54118
57
57
  langchain_core/load/__init__.py,sha256=m3_6Fk2gpYZO0xqyTnZzdQigvsYHjMariLq_L2KwJFk,1150
58
58
  langchain_core/load/dump.py,sha256=DEO-m_bBPyzFCIvxJND-p4iGuNISeWbl8jzcDICt3Bw,2616
59
59
  langchain_core/load/load.py,sha256=LQJqeERSO5mlqImCDMLXDwmtpvEssVJJi3Iau7qpY4M,9283
60
60
  langchain_core/load/mapping.py,sha256=SqBaAWAM2aV_Wgy80DAlS-39tJkHLcCyM45bVVnN12w,29513
61
61
  langchain_core/load/serializable.py,sha256=pm0kA1HZ_wOp0TkJvTbj5bxu0hFWZ0OzQV1BKbVK4jM,11683
62
62
  langchain_core/messages/__init__.py,sha256=hrsxGO0wLEIr81gpu2cL89kV6PeiW1yY-G0rhqYYXms,5723
63
- langchain_core/messages/ai.py,sha256=zVmVZ4zMLl91P0m89qMwa1LJc7BxqTNBN7T85lTm7xw,27423
64
- langchain_core/messages/base.py,sha256=KhzzMowLvqmzSe3uLcOy8Me0NGSuV9wJsZJ1KNPsJ28,16438
63
+ langchain_core/messages/ai.py,sha256=vS4GXL0K_dganLZxo_RBVWaVbVKwU4lfey-6jSCqkYo,27458
64
+ langchain_core/messages/base.py,sha256=j4_GZ6kn6n4ZczZE8O_-1mNNd2BrkaKBIX4pPnBNJKE,16447
65
65
  langchain_core/messages/chat.py,sha256=t9az-R1De2HdiEhhpGyIFonCqY03UAkqMdvttx11rhM,2204
66
- langchain_core/messages/content.py,sha256=LI2gXHRibAsDPPrEdmt1VIiLKAK8DoVXEn9VY9Jr2J4,41961
66
+ langchain_core/messages/content.py,sha256=M4icC9tEEVBORdcm_W0MqL6QFTFxnx1tpzh7JGvGNAo,41962
67
67
  langchain_core/messages/function.py,sha256=RlkcFREWGgAlnD0psOOWc2kQa7wVZ-kJBl-mi-UIcdw,2094
68
68
  langchain_core/messages/human.py,sha256=Sgx58Kwlb1y_YaeOXavz1D0V2ald_TAdqlC5zQI_Rz4,2130
69
69
  langchain_core/messages/modifier.py,sha256=8d3mhHnKMDU9Xkw_M3-uf5WBtqA4dZj81tD7A6Zgo_o,875
70
70
  langchain_core/messages/system.py,sha256=x8OBdba68Nt3SiO7aNTaDREq3iDjDV4XyRoqb-ZOmgo,2140
71
71
  langchain_core/messages/tool.py,sha256=MMklOAPd2e0OAGxM3Iode_Bm3bC74_icN3HnL2FPCig,12584
72
- langchain_core/messages/utils.py,sha256=YQpl2Cw4SD9jvtfzj-3ZZNqn-DU4Yw5CKXSlE9GqyaE,68655
72
+ langchain_core/messages/utils.py,sha256=CXARduPzvNERth0wcqOUJt06RwFCNEGQPdVdfsfaG9A,68766
73
73
  langchain_core/messages/block_translators/__init__.py,sha256=_CxgFIR8hrxROFl1dzRNwkL4cgL-TxxpYQBn-26zP4A,4244
74
74
  langchain_core/messages/block_translators/anthropic.py,sha256=eN304DgrEFTRl12f4PmU4P8ASTUngMkE7HC9-gpYUGk,19131
75
75
  langchain_core/messages/block_translators/bedrock.py,sha256=yLjYwtCsYGHBEj9CSXHCZYLmwsA4F6D6NTT5kE11Bww,3511
@@ -85,7 +85,7 @@ langchain_core/output_parsers/format_instructions.py,sha256=HK-KjPfQfBNj0V_ato0_
85
85
  langchain_core/output_parsers/json.py,sha256=cN9skZzIJZOyhUnmFwo_0YPemRwICdQa2a_28pphLlU,4648
86
86
  langchain_core/output_parsers/list.py,sha256=uF6V2MAfu7zdKCIFeve4QbE5mFZkYBPwPqF9qjFqCck,7253
87
87
  langchain_core/output_parsers/openai_functions.py,sha256=4tyd1riGCOjEOftIsMT1jbrXNv1HWrcGhHEg-K1M4Tw,10597
88
- langchain_core/output_parsers/openai_tools.py,sha256=CNDE6gy_TC04mfDqrqNLeTHgtq9gbVnHn4PMOHGSi2w,12380
88
+ langchain_core/output_parsers/openai_tools.py,sha256=Pc80ZIdal27NG-zCFcQ8eKAV9HfoLdOV4hGs8JUthWU,12817
89
89
  langchain_core/output_parsers/pydantic.py,sha256=5dDtxNPGqFXIkvSoAGU9sPDc1yJrYmpMaO9m7CPokrE,4444
90
90
  langchain_core/output_parsers/string.py,sha256=8XgjoeKSc39TN8HMXjMgxcE0vvP6b4kk9GZ6HmnAKDQ,969
91
91
  langchain_core/output_parsers/transform.py,sha256=FyYvkS1KnAHX9afF1qqdJbUBa_xUyDTvspPQBq8G5uM,5835
@@ -93,39 +93,39 @@ langchain_core/output_parsers/xml.py,sha256=3OATmB5Ej_6FNCJwkKLX-tyBH1pA2PvdS3Jy
93
93
  langchain_core/outputs/__init__.py,sha256=CLL4IYb-N18gSXLscJVNWDL2LapGieXJF5EhG8uQSvE,2115
94
94
  langchain_core/outputs/chat_generation.py,sha256=sD-wCAFWuzADKM7swf9EEaNJmRsEAfZT6tLi00UfPDY,4733
95
95
  langchain_core/outputs/chat_result.py,sha256=ZXLGUtb5xqJdoCtAX1XeiJf20ELx6gui7DUHH0rKnv8,1324
96
- langchain_core/outputs/generation.py,sha256=fzwJ0mLCKO2BBLYhUNdg6x-oXooGM2LCw0X-y3jWapc,2581
96
+ langchain_core/outputs/generation.py,sha256=q_TAIL0_NRkfCK6zsMVJ69G6iiDcJ0TTgoWRlcUtOf0,2564
97
97
  langchain_core/outputs/llm_result.py,sha256=srdoHk-Vk2Xh40XMYAgfsFwGFmvyk2NOkUkvb6U_xZ8,3894
98
98
  langchain_core/outputs/run_info.py,sha256=xCMWdsHfgnnodaf4OCMvZaWUfS836X7mV15JPkqvZjo,594
99
99
  langchain_core/prompts/__init__.py,sha256=gXRJkxl6z7AYTGyyQAF0DQYpbwCUvfCFwXFfhSekzDw,3033
100
- langchain_core/prompts/base.py,sha256=shDScg_133YNHZzV2U87gP3UbICDrf8TFwAUgq7egcU,15725
101
- langchain_core/prompts/chat.py,sha256=Y8nsM3wLRwwalMxbZ_KOZ2FlYDmwe1An_6k7oKAWYY4,49890
102
- langchain_core/prompts/dict.py,sha256=eaY3v6D_Du8DMFsqwYnQThwJ-zsPnfbyk9Wxvvc4rt8,4698
100
+ langchain_core/prompts/base.py,sha256=83WlSPJ3c23S5ctHtcThuiVFSuTOYV3aGFOliY8S5bQ,15772
101
+ langchain_core/prompts/chat.py,sha256=hE9ZsoyfhN4CcapDsWLsj5e_3QmqWY_Th0bV2LVnMMI,50242
102
+ langchain_core/prompts/dict.py,sha256=kSMonougSG-o7BZP1PG9L_Vxkf-Xwzjhn1dHJ9j4Cs8,4700
103
103
  langchain_core/prompts/few_shot.py,sha256=FaVMuen4eG0B-lnSr2-jGC_JMOhYoK1tfG-pJgYfcmg,15794
104
104
  langchain_core/prompts/few_shot_with_templates.py,sha256=aKDMxKFmmK8mzAP6I35vpxQUApLs-9AGKCgNcYK9GlA,7804
105
105
  langchain_core/prompts/image.py,sha256=L_5yGsI68Y0pwthA3AS0mQXFMXtvW_kBRItFS6Vpk14,4780
106
106
  langchain_core/prompts/loading.py,sha256=hvNsDvqLz5wJA1EywW2wCwKUhJgUzNcIKfp5VEVOEGc,6889
107
- langchain_core/prompts/message.py,sha256=gyiAKRfgXqgXqaeEXO0zFlt5Ote2T52npyaI1O5hhXE,2603
107
+ langchain_core/prompts/message.py,sha256=lonlnWOjDYjmxltD_NA2Z24XiiracUj912nQIF47eQE,2632
108
108
  langchain_core/prompts/prompt.py,sha256=TcQZNc-Y6c7CMJwY1HwMvRYU4NcbMdCw6YS37Tc3pWk,10948
109
109
  langchain_core/prompts/string.py,sha256=aXr9xhZo4WZqvsBqMWb6Nag5C5Ukqz2fMTRqDx8JaHc,10974
110
110
  langchain_core/prompts/structured.py,sha256=Uzh1PBLXzGyZ-4m4W-cMHz8nqL1XmMri8OOkoSSJiq8,5790
111
111
  langchain_core/runnables/__init__.py,sha256=efTnFjwN_QSAv5ThLmKuWeu8P1BLARH-cWKZBuimfDM,3858
112
- langchain_core/runnables/base.py,sha256=A5xHKNUI_QHOZvKr5lf8fvJxSSgsWetf_Ideb2X6vXM,215726
113
- langchain_core/runnables/branch.py,sha256=Qs_8-iOjaNhtTNuorsNEabGftyM411zworUQQqa5jW8,15690
112
+ langchain_core/runnables/base.py,sha256=vUR1HWB28OkWBWNm03qLCYaewCAWrNguqH9ob-7vJsY,216503
113
+ langchain_core/runnables/branch.py,sha256=Wviy59agVKhbwD_GlMZz-HP5pXZgw5oI5MJb1nyQiuc,15776
114
114
  langchain_core/runnables/config.py,sha256=w2f2BeYbiXIuXxYJCrmSDIh7LgwSyF-7p92W-sxrbKU,19103
115
- langchain_core/runnables/configurable.py,sha256=h5G8cZggCv-ZG0aZ08PwgJwitgD4HIBFnjI25skxfpE,23978
116
- langchain_core/runnables/fallbacks.py,sha256=mgCSJGFdfbCewJpwFe-m2kuViniXbDLu3Q2ekI_fQS8,24432
115
+ langchain_core/runnables/configurable.py,sha256=1FalcSplZ2EITuV-g-TxMoDiS3eZT32OF33ZLjxftd0,24053
116
+ langchain_core/runnables/fallbacks.py,sha256=60WZ8RoIlE69HsYqAyLncbdh0OhcBxbwvV3NYZogdyk,24468
117
117
  langchain_core/runnables/graph.py,sha256=mLQcI0XbUDYDXHnDbsybdo1odqSlkitcBEfglY56ihA,22950
118
118
  langchain_core/runnables/graph_ascii.py,sha256=le9njNqnDYtu1znTWGIyZYstEaiYuxBk9Qx8r7yfoXc,10328
119
- langchain_core/runnables/graph_mermaid.py,sha256=Mw5r4QWjConm-I2OYACMUZIc7qiEBXesLjsuCH4HYpg,16650
120
- langchain_core/runnables/graph_png.py,sha256=RM2sjhNWuBDxO7mSJvUOXiFHw06CmJ_s0puF7T6uKWk,5454
121
- langchain_core/runnables/history.py,sha256=ru_0ni55HQ4Fl7aFGcCFt93vkeQHLRsbjt9eKnf8RdQ,24181
122
- langchain_core/runnables/passthrough.py,sha256=ZXQJLQOQsl6uLSdOKAxBcvJjuDfzdHDrgLaiskL3jbw,25700
119
+ langchain_core/runnables/graph_mermaid.py,sha256=k615r8Q641pb_rpjTlmVc5fTlMco-1IIxQI8t3kBceE,16725
120
+ langchain_core/runnables/graph_png.py,sha256=pdt7_sRPJw38vkKixdb1yYB78kaxIA5ijnAdjJFt3l4,6473
121
+ langchain_core/runnables/history.py,sha256=5vvSniD6rjPai3bnxp2WxyTMW2jSHxqN0cZflnjoJs4,24264
122
+ langchain_core/runnables/passthrough.py,sha256=OwSGfJAz1uh54ORppmrQozMe5xDOpM2iB2HhjGkdnjo,26230
123
123
  langchain_core/runnables/retry.py,sha256=eG2LUH0cgIzH7Xe7aVbdYww-04f_o74GRd1VxTocjjU,13682
124
- langchain_core/runnables/router.py,sha256=Ec50ZKHxWlM3kNED6JXkbezEHxTgi3BzEsn6BIZTdho,7114
125
- langchain_core/runnables/schema.py,sha256=_y2zon3Ycghj21nHH3GsJ5q47Oad0AKyvne670E378w,5710
124
+ langchain_core/runnables/router.py,sha256=oY_PZb3Mh5Z7j4eBVMO_sXP_f6EapxV0NHknhdQw2rA,7134
125
+ langchain_core/runnables/schema.py,sha256=elc_pen9QvLkM2MoH7QqjRMqDS0yylwjvbl_gdeOD5Y,5719
126
126
  langchain_core/runnables/utils.py,sha256=p_QDnwJ7XcO7bl-QBdoSksNJixeMlYcr41ZAPmZTMiU,22176
127
127
  langchain_core/tools/__init__.py,sha256=qe2E9VwZ7hpdkToz96oSJ080a0de9oQwSO9FP1XnmM0,2518
128
- langchain_core/tools/base.py,sha256=-BnEYP1WbzIg4BJzlu-2WKJxBj-sMZLwrfWrTZ2VhPA,51229
128
+ langchain_core/tools/base.py,sha256=ejOqr0b-gJC1keQ666HgJv0kl_Q-F2WLhFs5UXlk5ts,51395
129
129
  langchain_core/tools/convert.py,sha256=xuvdirFB3a3A_qPN14-msXAvVt0dSUPMzD9iQUZzX8E,16258
130
130
  langchain_core/tools/render.py,sha256=gD3pXYWjCaDKsYq_MZ-yCRXl1wUJbOh6dJobda9VjYM,1817
131
131
  langchain_core/tools/retriever.py,sha256=hPdBhK8QBK2bRpyNMtq7VtA1qnTRQurRMRjPbVDNG-k,3791
@@ -150,16 +150,16 @@ langchain_core/utils/_merge.py,sha256=9wTZdkuG45azGBze7OZFFIoCiidHi3roe6TQiQ5bcV
150
150
  langchain_core/utils/aiter.py,sha256=gfFyGWro42FB4R66_tWSyW8XrLLzV7EI9EmLvI8dFGI,10574
151
151
  langchain_core/utils/env.py,sha256=pQTqZLCjcueoxTd8epc3cr0lRn8njJf_A-bOQfHWPXw,2458
152
152
  langchain_core/utils/formatting.py,sha256=fkieArzKXxSsLcEa3B-MX60O4ZLeeLjiPtVtxCJPcOU,1480
153
- langchain_core/utils/function_calling.py,sha256=U6tTvX7Ky2iF-cTuCYkGM0D2A7wDzHOwcLGILeNvGUs,27429
153
+ langchain_core/utils/function_calling.py,sha256=N_Fv9fpTTai1FffQQUZPfaW9qnpD-V9nkYy4_0v0xPw,27546
154
154
  langchain_core/utils/html.py,sha256=ReIdqTTC8r-AfsqynFjCIaFC9t9sI_vYnmz3DanpVqQ,3714
155
155
  langchain_core/utils/image.py,sha256=1MH8Lbg0f2HfhTC4zobKMvpVoHRfpsyvWHq9ae4xENo,532
156
- langchain_core/utils/input.py,sha256=Ruhzw4kjldit5aTsvsm_tgrcrpVaTnwq976lUn0G2_U,1887
156
+ langchain_core/utils/input.py,sha256=PYuiFKHhygAkM5yp5vxHqJe5Qnz1oay7k5cwx7hGocs,1999
157
157
  langchain_core/utils/interactive_env.py,sha256=LBgNICNAwgwDMOdlVD12TtZfSboPOKXaBS2Jn-bsXQ8,289
158
158
  langchain_core/utils/iter.py,sha256=jqtyfA2129a5ftfuRovpUBEslCGaeuiiGr8bkT-iozI,7300
159
159
  langchain_core/utils/json.py,sha256=Jsa-EuPLj5sSYDOAIzM7g1-7gsgfXgCs8KLNQ3x1-O4,6533
160
160
  langchain_core/utils/json_schema.py,sha256=d0yHW6D_IoM7sLGOLxSGcSpAnaYROaqbwmjk7XhvZZ4,9071
161
161
  langchain_core/utils/mustache.py,sha256=2LgatBIOa1bGU4EaL5xrS076NWqfQkB4Mtencmc3mtQ,21262
162
- langchain_core/utils/pydantic.py,sha256=Lu5Hu7tbMJpAEn4JHqPX2DstI3QMvnH4jRbjq3K283s,18510
162
+ langchain_core/utils/pydantic.py,sha256=XyzBLtf_5MhOvGCfHiIlMgb7-0PKUpx-aU3NQlS3Dxo,18465
163
163
  langchain_core/utils/strings.py,sha256=DGhj7CxgxcYIdvMu3Ug93BtayNFaRvyIecgIaxZOa1g,1721
164
164
  langchain_core/utils/usage.py,sha256=vB674Eu69xDGx6JBJlySp6cnePkxCD0Wz26mi502NAM,1211
165
165
  langchain_core/utils/utils.py,sha256=EqczXbgT_IqCkZOU1MJ33mrp2ZHUAeUkVXol4y-euc0,16192
@@ -167,6 +167,6 @@ langchain_core/vectorstores/__init__.py,sha256=5P0eoeoH5LHab64JjmEeWa6SxX4eMy-et
167
167
  langchain_core/vectorstores/base.py,sha256=fNFdTXoKeQ-ok8TBtpdueVtmkJAEjTH_eccvcdpCovE,40784
168
168
  langchain_core/vectorstores/in_memory.py,sha256=FCNG8w50qGS0ZCwIcTmaU5QFprkuLS7ntlgH3YUIkzc,15719
169
169
  langchain_core/vectorstores/utils.py,sha256=XXpQ2mxado6vrLmZWVTstcxrurBtoHcBZEORITAHWw0,4931
170
- langchain_core-1.0.3.dist-info/METADATA,sha256=Hea71P5t0e34cJVU2RaJSDA3MOT_THp4THGXqGhdblQ,3478
171
- langchain_core-1.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
172
- langchain_core-1.0.3.dist-info/RECORD,,
170
+ langchain_core-1.0.4.dist-info/METADATA,sha256=M9RKsUpIcOh8wjMvm6sX_x7pPMqprzhgVLp2X3_wOEk,3478
171
+ langchain_core-1.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
172
+ langchain_core-1.0.4.dist-info/RECORD,,