langroid 0.1.89__py3-none-any.whl → 0.1.91__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/chat_agent.py +7 -2
- langroid/agent/task.py +6 -2
- {langroid-0.1.89.dist-info → langroid-0.1.91.dist-info}/METADATA +1 -1
- {langroid-0.1.89.dist-info → langroid-0.1.91.dist-info}/RECORD +6 -6
- {langroid-0.1.89.dist-info → langroid-0.1.91.dist-info}/LICENSE +0 -0
- {langroid-0.1.89.dist-info → langroid-0.1.91.dist-info}/WHEEL +0 -0
langroid/agent/chat_agent.py
CHANGED
@@ -82,8 +82,13 @@ class ChatAgent(Agent):
|
|
82
82
|
"""
|
83
83
|
super().__init__(config)
|
84
84
|
self.config: ChatAgentConfig = config
|
85
|
-
if
|
86
|
-
|
85
|
+
if (
|
86
|
+
self.llm is not None
|
87
|
+
and (
|
88
|
+
not isinstance(self.llm, OpenAIGPT)
|
89
|
+
or not self.llm.is_openai_chat_model()
|
90
|
+
)
|
91
|
+
and self.config.use_functions_api
|
87
92
|
):
|
88
93
|
# for non-OpenAI models, use Langroid Tool instead of Function-calling
|
89
94
|
logger.warning(
|
langroid/agent/task.py
CHANGED
@@ -802,8 +802,12 @@ class Task:
|
|
802
802
|
"""
|
803
803
|
if recipient == "":
|
804
804
|
return True
|
805
|
-
|
806
|
-
|
805
|
+
# native responders names are USER, LLM, AGENT,
|
806
|
+
# and the names of subtasks are from Task.name attribute
|
807
|
+
responder_names = [self.name.lower()] + [
|
808
|
+
r.name.lower() for r in self.responders
|
809
|
+
]
|
810
|
+
return recipient.lower() in responder_names
|
807
811
|
|
808
812
|
def _recipient_mismatch(self, e: Responder) -> bool:
|
809
813
|
"""
|
@@ -1,7 +1,7 @@
|
|
1
1
|
langroid/__init__.py,sha256=sEKJ_5WJBAMZApevfeE3gxLK-eotVzJMJlT83G0rAko,30
|
2
2
|
langroid/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
langroid/agent/base.py,sha256=xSD0dvFHowvrqDjiETemcBrNDerA01QU6dK42X9yKdg,29811
|
4
|
-
langroid/agent/chat_agent.py,sha256=
|
4
|
+
langroid/agent/chat_agent.py,sha256=Ok48aqb8Yvslpi2DCvinN1taq0jjqIVAJIDQosxxx3w,32880
|
5
5
|
langroid/agent/chat_document.py,sha256=k7Klav3FIBTf2w95bQtxgqBrf2fMo1ydSlklQvv4RCg,6252
|
6
6
|
langroid/agent/helpers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
langroid/agent/junk,sha256=LxfuuW7Cijsg0szAzT81OjWWv1PMNI-6w_-DspVIO2s,339
|
@@ -17,7 +17,7 @@ langroid/agent/special/sql/utils/populate_metadata.py,sha256=zRjw31a1ZXvpx9bcmbt
|
|
17
17
|
langroid/agent/special/sql/utils/system_message.py,sha256=qKLHkvQWRQodTtPLPxr1GSLUYUFASZU8x-ybV67cB68,1885
|
18
18
|
langroid/agent/special/sql/utils/tools.py,sha256=6uB2424SLtmapui9ggcEr0ZTiB6_dL1-JRGgN8RK9Js,1332
|
19
19
|
langroid/agent/special/table_chat_agent.py,sha256=zejrvv6GaspImVJ1oXWUTVN-h-kDjadTdBDkTRqrYKo,7691
|
20
|
-
langroid/agent/task.py,sha256=
|
20
|
+
langroid/agent/task.py,sha256=D_YseIaHEMseyv2lgCtdkWjLwrEpmZsWfiB21xIsaS0,34465
|
21
21
|
langroid/agent/tool_message.py,sha256=vUeM2ZXOlXFTFL9th6nXUMYRrWqQyz5EprN1BF-Sd1M,6085
|
22
22
|
langroid/agent/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
23
|
langroid/agent/tools/extract_tool.py,sha256=u5lL9rKBzaLBOrRyLnTAZ97pQ1uxyLP39XsWMnpaZpw,3789
|
@@ -88,7 +88,7 @@ langroid/vector_store/chromadb.py,sha256=2vWoOwWIgeRVIMiywAl084eruBBQhkd8_XzAg-K
|
|
88
88
|
langroid/vector_store/meilisearch.py,sha256=r5-2sybfE0zPt7wEO_HB7JqVI9Mf5O55uVS1L-Mx-jM,11168
|
89
89
|
langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
|
90
90
|
langroid/vector_store/qdrantdb.py,sha256=PPAJRQKUgArdgPFjQfOZtX-EQwVLaJ7HTWEr-VY2og0,10865
|
91
|
-
langroid-0.1.
|
92
|
-
langroid-0.1.
|
93
|
-
langroid-0.1.
|
94
|
-
langroid-0.1.
|
91
|
+
langroid-0.1.91.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
92
|
+
langroid-0.1.91.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
93
|
+
langroid-0.1.91.dist-info/METADATA,sha256=lUhi2q4RQGvq1S8qvQjN0Z3qWHYZjQv7Y9zMkPUmDj8,37795
|
94
|
+
langroid-0.1.91.dist-info/RECORD,,
|
File without changes
|
File without changes
|