langroid 0.35.0__py3-none-any.whl → 0.35.1__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 +8 -11
- {langroid-0.35.0.dist-info → langroid-0.35.1.dist-info}/METADATA +1 -1
- {langroid-0.35.0.dist-info → langroid-0.35.1.dist-info}/RECORD +5 -5
- {langroid-0.35.0.dist-info → langroid-0.35.1.dist-info}/WHEEL +0 -0
- {langroid-0.35.0.dist-info → langroid-0.35.1.dist-info}/licenses/LICENSE +0 -0
langroid/agent/chat_agent.py
CHANGED
@@ -416,7 +416,7 @@ class ChatAgent(Agent):
|
|
416
416
|
]
|
417
417
|
|
418
418
|
if len(usable_tool_classes) == 0:
|
419
|
-
return "
|
419
|
+
return ""
|
420
420
|
format_instructions = "\n\n".join(
|
421
421
|
[
|
422
422
|
msg_cls.format_instructions(tool=self.config.use_tools)
|
@@ -568,17 +568,14 @@ class ChatAgent(Agent):
|
|
568
568
|
Returns:
|
569
569
|
LLMMessage object
|
570
570
|
"""
|
571
|
-
content =
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
571
|
+
content = self.system_message
|
572
|
+
if self.system_tool_instructions != "":
|
573
|
+
content += "\n\n" + self.system_tool_instructions
|
574
|
+
if self.system_tool_format_instructions != "":
|
575
|
+
content += "\n\n" + self.system_tool_format_instructions
|
576
|
+
if self.output_format_instructions != "":
|
577
|
+
content += "\n\n" + self.output_format_instructions
|
578
578
|
|
579
|
-
{self.output_format_instructions}
|
580
|
-
"""
|
581
|
-
)
|
582
579
|
# remove leading and trailing newlines and other whitespace
|
583
580
|
return LLMMessage(role=Role.SYSTEM, content=content.strip())
|
584
581
|
|
@@ -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=oThlrYygKDu1-bKjAfygldJ511gMKT8Z0qCrD52DdDM,77834
|
7
7
|
langroid/agent/batch.py,sha256=vi1r5i1-vN80WfqHDSwjEym_KfGsqPGUtwktmiK1nuk,20635
|
8
|
-
langroid/agent/chat_agent.py,sha256=
|
8
|
+
langroid/agent/chat_agent.py,sha256=UvcZRoQ5jIYvlei8rku0T2Ul8tMpEhCJ2FGvr5_yc5Q,82275
|
9
9
|
langroid/agent/chat_document.py,sha256=xzMtrPbaW-Y-BnF7kuhr2dorsD-D5rMWzfOqJ8HAoo8,17885
|
10
10
|
langroid/agent/openai_assistant.py,sha256=JkAcs02bIrgPNVvUWVR06VCthc5-ulla2QMBzux_q6o,34340
|
11
11
|
langroid/agent/task.py,sha256=XrXUbSoiFasvpIsZPn_cBpdWaTCKljJPRimtLMrSZrs,90347
|
@@ -121,7 +121,7 @@ langroid/vector_store/lancedb.py,sha256=b3_vWkTjG8mweZ7ZNlUD-NjmQP_rLBZfyKWcxt2v
|
|
121
121
|
langroid/vector_store/meilisearch.py,sha256=6frB7GFWeWmeKzRfLZIvzRjllniZ1cYj3HmhHQICXLs,11663
|
122
122
|
langroid/vector_store/momento.py,sha256=UNHGT6jXuQtqY9f6MdqGU14bVnS0zHgIJUa30ULpUJo,10474
|
123
123
|
langroid/vector_store/qdrantdb.py,sha256=HRLCt-FG8y4718omwpFaQZnWeYxPj0XCwS4tjokI1sU,18116
|
124
|
-
langroid-0.35.
|
125
|
-
langroid-0.35.
|
126
|
-
langroid-0.35.
|
127
|
-
langroid-0.35.
|
124
|
+
langroid-0.35.1.dist-info/METADATA,sha256=W3P6F5lBL0NxyGL5lNPvhrOadqKLRuwxLy8PCu45FAo,59313
|
125
|
+
langroid-0.35.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
126
|
+
langroid-0.35.1.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
127
|
+
langroid-0.35.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|