langroid 0.23.2__py3-none-any.whl → 0.23.3__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.
- langroid/agent/base.py +2 -2
- {langroid-0.23.2.dist-info → langroid-0.23.3.dist-info}/METADATA +1 -1
- {langroid-0.23.2.dist-info → langroid-0.23.3.dist-info}/RECORD +6 -6
- pyproject.toml +1 -1
- {langroid-0.23.2.dist-info → langroid-0.23.3.dist-info}/LICENSE +0 -0
- {langroid-0.23.2.dist-info → langroid-0.23.3.dist-info}/WHEEL +0 -0
langroid/agent/base.py
CHANGED
@@ -899,7 +899,7 @@ class Agent(ABC):
|
|
899
899
|
try:
|
900
900
|
tools = self.get_tool_messages(msg)
|
901
901
|
return len(tools) > 0
|
902
|
-
except ValidationError:
|
902
|
+
except (ValidationError, XMLException):
|
903
903
|
# there is a tool/fn-call attempt but had a validation error,
|
904
904
|
# so we still consider this a tool message "attempt"
|
905
905
|
return True
|
@@ -934,7 +934,7 @@ class Agent(ABC):
|
|
934
934
|
) -> List[ToolMessage]:
|
935
935
|
try:
|
936
936
|
return self.get_tool_messages(msg, all_tools)
|
937
|
-
except ValidationError:
|
937
|
+
except (ValidationError, XMLException):
|
938
938
|
return []
|
939
939
|
|
940
940
|
def get_tool_messages(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
langroid/__init__.py,sha256=z_fCOLQJPOw3LLRPBlFB5-2HyCjpPgQa4m4iY5Fvb8Y,1800
|
2
2
|
langroid/agent/__init__.py,sha256=ll0Cubd2DZ-fsCMl7e10hf9ZjFGKzphfBco396IKITY,786
|
3
|
-
langroid/agent/base.py,sha256=
|
3
|
+
langroid/agent/base.py,sha256=hxNwXwe9CMa0ygdVJTNuc6kz47TKFUimvWYBtEj8DOg,67977
|
4
4
|
langroid/agent/batch.py,sha256=QZdlt1563hx4l3AXrCaGovE-PNG93M3DsvQAbDzdiS8,13705
|
5
5
|
langroid/agent/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
langroid/agent/callbacks/chainlit.py,sha256=JJXI3UGTyTDg2FFath4rqY1GyUo_0pbVBt8CZpvdtn4,23289
|
@@ -142,8 +142,8 @@ langroid/vector_store/meilisearch.py,sha256=6frB7GFWeWmeKzRfLZIvzRjllniZ1cYj3Hmh
|
|
142
142
|
langroid/vector_store/momento.py,sha256=qR-zBF1RKVHQZPZQYW_7g-XpTwr46p8HJuYPCkfJbM4,10534
|
143
143
|
langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
|
144
144
|
langroid/vector_store/qdrantdb.py,sha256=v88lqFkepADvlN6lByUj9I4NEKa9X9lWH16uTPPbYrE,17457
|
145
|
-
pyproject.toml,sha256=
|
146
|
-
langroid-0.23.
|
147
|
-
langroid-0.23.
|
148
|
-
langroid-0.23.
|
149
|
-
langroid-0.23.
|
145
|
+
pyproject.toml,sha256=aXIBWrlBHPxy6j5IcOxQSlvnsDcp095_slZLNi2W0is,7488
|
146
|
+
langroid-0.23.3.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
147
|
+
langroid-0.23.3.dist-info/METADATA,sha256=BTBygy3dRDMfvOqASNZyDy14ckwDLxehL_A3hx_24i0,57300
|
148
|
+
langroid-0.23.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
149
|
+
langroid-0.23.3.dist-info/RECORD,,
|
pyproject.toml
CHANGED
File without changes
|
File without changes
|