langroid 0.59.4__py3-none-any.whl → 0.59.6__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.
@@ -264,12 +264,17 @@ class ChatAgent(Agent):
264
264
  Revisit later.
265
265
  """
266
266
  agent_cls = type(self)
267
- config_copy = copy.deepcopy(self.config)
267
+ # Use model_copy to preserve Pydantic subclass types (like MockLMConfig)
268
+ # instead of deepcopy which loses subclass information
269
+ config_copy = self.config.model_copy(deep=True)
268
270
  config_copy.name = f"{config_copy.name}-{i}"
269
271
  new_agent = agent_cls(config_copy)
270
272
  new_agent.system_tool_instructions = self.system_tool_instructions
271
273
  new_agent.system_tool_format_instructions = self.system_tool_format_instructions
272
274
  new_agent.llm_tools_map = self.llm_tools_map
275
+ new_agent.llm_tools_known = self.llm_tools_known
276
+ new_agent.llm_tools_handled = self.llm_tools_handled
277
+ new_agent.llm_tools_usable = self.llm_tools_usable
273
278
  new_agent.llm_functions_map = self.llm_functions_map
274
279
  new_agent.llm_functions_handled = self.llm_functions_handled
275
280
  new_agent.llm_functions_usable = self.llm_functions_usable
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langroid
3
- Version: 0.59.4
3
+ Version: 0.59.6
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  Author-email: Prasad Chalasani <pchalasani@gmail.com>
6
6
  License: MIT
@@ -53,7 +53,7 @@ Requires-Dist: requests<3.0.0,>=2.31.0
53
53
  Requires-Dist: rich<14.0.0,>=13.3.4
54
54
  Requires-Dist: thefuzz<1.0.0,>=0.20.0
55
55
  Requires-Dist: tiktoken<1.0.0,>=0.7.0
56
- Requires-Dist: trafilatura<2.0.0,>=1.5.0
56
+ Requires-Dist: trafilatura<3.0.0,>=2.0.0
57
57
  Requires-Dist: typer<1.0.0,>=0.9.0
58
58
  Requires-Dist: wget<4.0,>=3.2
59
59
  Provides-Extra: all
@@ -5,7 +5,7 @@ langroid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  langroid/agent/__init__.py,sha256=ll0Cubd2DZ-fsCMl7e10hf9ZjFGKzphfBco396IKITY,786
6
6
  langroid/agent/base.py,sha256=mP57z3QiOm8Y7tG_OHpyvcsWmoq-4WSrHxAiiwgtsX8,87307
7
7
  langroid/agent/batch.py,sha256=wpE9RqCNDVDhAXkCB7wEqfCIEAi6qKcrhaZ-Zr9T4C0,21375
8
- langroid/agent/chat_agent.py,sha256=wTR9PPbUZb4utOhKvAFebTOVkzJrySbhRdrrwqiceXg,89944
8
+ langroid/agent/chat_agent.py,sha256=N0KDv1aqfRSE5UJyJaPtdXGwDFfMXit9TJpL-TAZsY8,90272
9
9
  langroid/agent/chat_document.py,sha256=bgNGfgyvTqPqUV8093IYRJ7jLNlOEctEvjnwdVUApaI,19748
10
10
  langroid/agent/done_sequence_parser.py,sha256=99UZoLknQx0AZzX-hGp03MfUxHomrMTLcyekpC25JoU,5845
11
11
  langroid/agent/openai_assistant.py,sha256=v__MWg0jhEOQVplKh1urU2Dq4VZonHV0G3CuGiHFw7o,34386
@@ -139,7 +139,7 @@ langroid/vector_store/pineconedb.py,sha256=7V0Bkt4ZrOR3V90tdXvdFmyNGuww7SFdyPq7-
139
139
  langroid/vector_store/postgres.py,sha256=TY_VshimwFZglYgKYm7Qn1F-dCSL8GsXRTgmh7VTe9c,16110
140
140
  langroid/vector_store/qdrantdb.py,sha256=mqxMOrcLAQpl0opuL8vXhdIt6ppv2zYyAvddHZoEW0Y,19184
141
141
  langroid/vector_store/weaviatedb.py,sha256=BS95bxVKNYfQc9VPb85a1HlcgnXfAkgMzjydnjCgRHc,11853
142
- langroid-0.59.4.dist-info/METADATA,sha256=5sDrQS2lyGqbo7U02g4Um4SeaoI627fsA19LITqQcxg,66517
143
- langroid-0.59.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
144
- langroid-0.59.4.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
145
- langroid-0.59.4.dist-info/RECORD,,
142
+ langroid-0.59.6.dist-info/METADATA,sha256=FzFaOZvbpx1uEudG4vLhNwtwXbCFgSdZpezH4EnVb1M,66517
143
+ langroid-0.59.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
144
+ langroid-0.59.6.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
145
+ langroid-0.59.6.dist-info/RECORD,,