lfx-nightly 0.1.13.dev0__py3-none-any.whl → 0.1.13.dev2__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.
Potentially problematic release.
This version of lfx-nightly might be problematic. Click here for more details.
- lfx/_assets/component_index.json +1 -1
- lfx/components/agents/agent.py +9 -1
- lfx/components/input_output/chat.py +8 -0
- lfx/components/input_output/chat_output.py +8 -0
- lfx/components/logic/loop.py +4 -0
- lfx/field_typing/constants.py +1 -0
- {lfx_nightly-0.1.13.dev0.dist-info → lfx_nightly-0.1.13.dev2.dist-info}/METADATA +1 -1
- {lfx_nightly-0.1.13.dev0.dist-info → lfx_nightly-0.1.13.dev2.dist-info}/RECORD +10 -10
- {lfx_nightly-0.1.13.dev0.dist-info → lfx_nightly-0.1.13.dev2.dist-info}/WHEEL +0 -0
- {lfx_nightly-0.1.13.dev0.dist-info → lfx_nightly-0.1.13.dev2.dist-info}/entry_points.txt +0 -0
lfx/components/agents/agent.py
CHANGED
|
@@ -21,7 +21,7 @@ from lfx.custom.custom_component.component import get_component_toolkit
|
|
|
21
21
|
from lfx.custom.utils import update_component_build_config
|
|
22
22
|
from lfx.helpers.base_model import build_model_from_schema
|
|
23
23
|
from lfx.inputs.inputs import BoolInput
|
|
24
|
-
from lfx.io import DropdownInput, IntInput, MultilineInput, Output, TableInput
|
|
24
|
+
from lfx.io import DropdownInput, IntInput, MessageTextInput, MultilineInput, Output, TableInput
|
|
25
25
|
from lfx.log.logger import logger
|
|
26
26
|
from lfx.schema.data import Data
|
|
27
27
|
from lfx.schema.dotdict import dotdict
|
|
@@ -85,6 +85,13 @@ class AgentComponent(ToolCallingAgentComponent):
|
|
|
85
85
|
value="You are a helpful assistant that can use tools to answer questions and perform tasks.",
|
|
86
86
|
advanced=False,
|
|
87
87
|
),
|
|
88
|
+
MessageTextInput(
|
|
89
|
+
name="context_id",
|
|
90
|
+
display_name="Context ID",
|
|
91
|
+
info="The context ID of the chat. Adds an extra layer to the local memory.",
|
|
92
|
+
value="",
|
|
93
|
+
advanced=True,
|
|
94
|
+
),
|
|
88
95
|
IntInput(
|
|
89
96
|
name="n_messages",
|
|
90
97
|
display_name="Number of Chat History Messages",
|
|
@@ -408,6 +415,7 @@ class AgentComponent(ToolCallingAgentComponent):
|
|
|
408
415
|
await MemoryComponent(**self.get_base_args())
|
|
409
416
|
.set(
|
|
410
417
|
session_id=self.graph.session_id,
|
|
418
|
+
context_id=self.context_id,
|
|
411
419
|
order="Ascending",
|
|
412
420
|
n_messages=self.n_messages,
|
|
413
421
|
)
|
|
@@ -60,6 +60,13 @@ class ChatInput(ChatComponent):
|
|
|
60
60
|
info="The session ID of the chat. If empty, the current session ID parameter will be used.",
|
|
61
61
|
advanced=True,
|
|
62
62
|
),
|
|
63
|
+
MessageTextInput(
|
|
64
|
+
name="context_id",
|
|
65
|
+
display_name="Context ID",
|
|
66
|
+
info="The context ID of the chat. Adds an extra layer to the local memory.",
|
|
67
|
+
value="",
|
|
68
|
+
advanced=True,
|
|
69
|
+
),
|
|
63
70
|
FileInput(
|
|
64
71
|
name="files",
|
|
65
72
|
display_name="Files",
|
|
@@ -87,6 +94,7 @@ class ChatInput(ChatComponent):
|
|
|
87
94
|
sender=self.sender,
|
|
88
95
|
sender_name=self.sender_name,
|
|
89
96
|
session_id=self.session_id,
|
|
97
|
+
context_id=self.context_id,
|
|
90
98
|
files=files,
|
|
91
99
|
)
|
|
92
100
|
if self.session_id and isinstance(message, Message) and self.should_store_message:
|
|
@@ -63,6 +63,13 @@ class ChatOutput(ChatComponent):
|
|
|
63
63
|
info="The session ID of the chat. If empty, the current session ID parameter will be used.",
|
|
64
64
|
advanced=True,
|
|
65
65
|
),
|
|
66
|
+
MessageTextInput(
|
|
67
|
+
name="context_id",
|
|
68
|
+
display_name="Context ID",
|
|
69
|
+
info="The context ID of the chat. Adds an extra layer to the local memory.",
|
|
70
|
+
value="",
|
|
71
|
+
advanced=True,
|
|
72
|
+
),
|
|
66
73
|
MessageTextInput(
|
|
67
74
|
name="data_template",
|
|
68
75
|
display_name="Data Template",
|
|
@@ -121,6 +128,7 @@ class ChatOutput(ChatComponent):
|
|
|
121
128
|
message.sender = self.sender
|
|
122
129
|
message.sender_name = self.sender_name
|
|
123
130
|
message.session_id = self.session_id
|
|
131
|
+
message.context_id = self.context_id
|
|
124
132
|
message.flow_id = self.graph.flow_id if hasattr(self, "graph") else None
|
|
125
133
|
message.properties.source = self._build_source(source_id, display_name, source)
|
|
126
134
|
|
lfx/components/logic/loop.py
CHANGED
|
@@ -89,6 +89,10 @@ class LoopComponent(Component):
|
|
|
89
89
|
item_dependency_id = self.get_incoming_edge_by_target_param("item")
|
|
90
90
|
if item_dependency_id not in self.graph.run_manager.run_predecessors[self._id]:
|
|
91
91
|
self.graph.run_manager.run_predecessors[self._id].append(item_dependency_id)
|
|
92
|
+
# CRITICAL: Also update run_map so remove_from_predecessors() works correctly
|
|
93
|
+
# run_map[predecessor] = list of vertices that depend on predecessor
|
|
94
|
+
if self._id not in self.graph.run_manager.run_map[item_dependency_id]:
|
|
95
|
+
self.graph.run_manager.run_map[item_dependency_id].append(self._id)
|
|
92
96
|
|
|
93
97
|
def done_output(self) -> DataFrame:
|
|
94
98
|
"""Trigger the done output when iteration is complete."""
|
lfx/field_typing/constants.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lfx-nightly
|
|
3
|
-
Version: 0.1.13.
|
|
3
|
+
Version: 0.1.13.dev2
|
|
4
4
|
Summary: Langflow Executor - A lightweight CLI tool for executing and serving Langflow AI flows
|
|
5
5
|
Author-email: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
|
|
6
6
|
Requires-Python: <3.14,>=3.10
|
|
@@ -4,7 +4,7 @@ lfx/constants.py,sha256=Ert_SpwXhutgcTKEvtDArtkONXgyE5x68opMoQfukMA,203
|
|
|
4
4
|
lfx/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
lfx/settings.py,sha256=wnx4zkOLQ8mvampYsnnvVV9GvEnRUuWQpKFSbFTCIp4,181
|
|
6
6
|
lfx/type_extraction.py,sha256=eCZNl9nAQivKdaPv_9BK71N0JV9Rtr--veAht0dnQ4A,2921
|
|
7
|
-
lfx/_assets/component_index.json,sha256=
|
|
7
|
+
lfx/_assets/component_index.json,sha256=zmPfN3r3mfThSSgHe0kk_cH59hjk2-GReaVZjP6cfcw,3913662
|
|
8
8
|
lfx/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
lfx/base/constants.py,sha256=v9vo0Ifg8RxDu__XqgGzIXHlsnUFyWM-SSux0uHHoz8,1187
|
|
10
10
|
lfx/base/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -113,7 +113,7 @@ lfx/components/Notion/update_page_property.py,sha256=tgmPMbD1eX58dQQNXv1w5FzDec7
|
|
|
113
113
|
lfx/components/agentql/__init__.py,sha256=Erl669Dzsk-SegsDPWTtkKbprMXVuv8UTCo5REzZGTc,56
|
|
114
114
|
lfx/components/agentql/agentql_api.py,sha256=N94yEK7ZuQCIsFBlr_8dqrJY-K1-KNb6QEEYfDIsDME,5569
|
|
115
115
|
lfx/components/agents/__init__.py,sha256=UBu5kO9hp8yFyxTU-u9KHN9zTSoHhJSYdKtRuT5ig9c,1164
|
|
116
|
-
lfx/components/agents/agent.py,sha256=
|
|
116
|
+
lfx/components/agents/agent.py,sha256=vbi422N1dpML7fpYn3FqcwQ5nYS7BQBnmSN--WnheOg,26988
|
|
117
117
|
lfx/components/agents/cuga_agent.py,sha256=r_342LveLdERtvE84UJJOdKTEwWSIjvASRYke9JV2Ik,44494
|
|
118
118
|
lfx/components/agents/mcp_component.py,sha256=mE2HvbHcdkuWWylxmaNNZobbtgBRktOOakeGwUYs7Qs,25586
|
|
119
119
|
lfx/components/aiml/__init__.py,sha256=DNKB-HMFGFYmsdkON-s8557ttgBXVXADmS-BcuSQiIQ,1087
|
|
@@ -340,8 +340,8 @@ lfx/components/ibm/watsonx_embeddings.py,sha256=_97UE-qQDCjkWfX3NFWNCti4TUXxO1LO
|
|
|
340
340
|
lfx/components/icosacomputing/__init__.py,sha256=NByWM-IMPf7N1lOeZDet8CvIa8A25kG3yKircYwS52w,120
|
|
341
341
|
lfx/components/icosacomputing/combinatorial_reasoner.py,sha256=SFVwR_8jGHVDaGO81jj2vzzeKh892h1nMGxCDljbvNY,2766
|
|
342
342
|
lfx/components/input_output/__init__.py,sha256=BaDAE9j41eSg04p5S6MJyUs4daU8UNp5e4m988K4VLQ,1291
|
|
343
|
-
lfx/components/input_output/chat.py,sha256=
|
|
344
|
-
lfx/components/input_output/chat_output.py,sha256=
|
|
343
|
+
lfx/components/input_output/chat.py,sha256=ABSltBgX0KcpqEjAsJY25Vn4_0GVGTRNAktSsp7xi3Y,3428
|
|
344
|
+
lfx/components/input_output/chat_output.py,sha256=SEitPjXVTitj50hmQrq9LRu68GWSt2NtNa5Www02aFM,6931
|
|
345
345
|
lfx/components/input_output/text.py,sha256=PdKOpZG5zVIoh45uzxRbY_pcycmrLaicoFhf9dauhZ0,743
|
|
346
346
|
lfx/components/input_output/text_output.py,sha256=Ij_Xk2hubdSwZoNDoltJU78YdCw91rE9kkGbY6qLViY,820
|
|
347
347
|
lfx/components/jigsawstack/__init__.py,sha256=vqTmy5sxj_CAdkkdStaquvLrze7FMwGFTjcapd0r5eU,935
|
|
@@ -398,7 +398,7 @@ lfx/components/logic/data_conditional_router.py,sha256=b6G_QWajQqoFCQM-614QbrPoU
|
|
|
398
398
|
lfx/components/logic/flow_tool.py,sha256=k0jXnRn0TIarE7cw61w80R-a_XmloRTIHioYGeZrBeU,3984
|
|
399
399
|
lfx/components/logic/listen.py,sha256=k_wRN3yW5xtG1CjTdGYhL5LxdgCZ0Bi9cbWP54FkyuY,935
|
|
400
400
|
lfx/components/logic/llm_conditional_router.py,sha256=wHCAryCKBvQG5SEwm4KmTufliGBlLFS0Dby2ndF-77w,18714
|
|
401
|
-
lfx/components/logic/loop.py,sha256=
|
|
401
|
+
lfx/components/logic/loop.py,sha256=OUKEGB4YrwGSaZfrHqHcKEE95YxdSGvQ8YIU5JHzvCE,5020
|
|
402
402
|
lfx/components/logic/notify.py,sha256=A9aLooUwudRUsf2BRdE7CmGibCCRuQeCadneart9BEg,3086
|
|
403
403
|
lfx/components/logic/pass_message.py,sha256=BNPh7TOQ-svrhR2-uMQMMT0LBW0sT_zzIpbuWeEEPDY,1085
|
|
404
404
|
lfx/components/logic/run_flow.py,sha256=DA08G-LYKmRr4srpLpfqma8iVUBdPEWYlOFgUrv6TDU,2914
|
|
@@ -601,7 +601,7 @@ lfx/events/event_manager.py,sha256=M2-k9obLHiAdjipPtjDf2tI2g7AUZLLrKMSBj60PNzY,3
|
|
|
601
601
|
lfx/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
602
602
|
lfx/exceptions/component.py,sha256=Tu9OYNXs3dOuOAujr4KMqkqAmFGgW7aqhTNsDPyYf3Q,446
|
|
603
603
|
lfx/field_typing/__init__.py,sha256=cfwSKHa79AIGqvbH4gmcGRA0purLyLy_XG_YihfWdBU,1730
|
|
604
|
-
lfx/field_typing/constants.py,sha256=
|
|
604
|
+
lfx/field_typing/constants.py,sha256=VVkolqwicz8CUppSZ2N0OfhwwBbEOUdNxVerKgleXOQ,5790
|
|
605
605
|
lfx/field_typing/range_spec.py,sha256=q7_CHhOO6YA1tFOgDAaeval-C_wzoAMSZQ8flkzCwnQ,1187
|
|
606
606
|
lfx/graph/__init__.py,sha256=uHjF2QW6i88_q3uspuPnulTyEA_QNV6eygOD8UZgG40,309
|
|
607
607
|
lfx/graph/schema.py,sha256=58vzeUEseURXBjLFeEFFWcXmFSzeQczYdzIhQ_79Nlg,2668
|
|
@@ -749,7 +749,7 @@ lfx/utils/schemas.py,sha256=NbOtVQBrn4d0BAu-0H_eCTZI2CXkKZlRY37XCSmuJwc,3865
|
|
|
749
749
|
lfx/utils/util.py,sha256=Ww85wbr1-vjh2pXVtmTqoUVr6MXAW8S7eDx_Ys6HpE8,20696
|
|
750
750
|
lfx/utils/util_strings.py,sha256=nU_IcdphNaj6bAPbjeL-c1cInQPfTBit8mp5Y57lwQk,1686
|
|
751
751
|
lfx/utils/version.py,sha256=cHpbO0OJD2JQAvVaTH_6ibYeFbHJV0QDHs_YXXZ-bT8,671
|
|
752
|
-
lfx_nightly-0.1.13.
|
|
753
|
-
lfx_nightly-0.1.13.
|
|
754
|
-
lfx_nightly-0.1.13.
|
|
755
|
-
lfx_nightly-0.1.13.
|
|
752
|
+
lfx_nightly-0.1.13.dev2.dist-info/METADATA,sha256=0f_0kz4XMwllPWDRJ-itUAZ0UyLud12fqO0m81UYhZM,8289
|
|
753
|
+
lfx_nightly-0.1.13.dev2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
754
|
+
lfx_nightly-0.1.13.dev2.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
|
|
755
|
+
lfx_nightly-0.1.13.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|