lfx-nightly 0.1.12.dev24__py3-none-any.whl → 0.1.12.dev26__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/base/composio/composio_base.py +2 -2
- lfx/base/data/base_file.py +1 -1
- lfx/base/models/model_input_constants.py +4 -0
- lfx/base/tools/run_flow.py +4 -2
- lfx/components/agents/agent.py +2 -5
- lfx/components/elastic/opensearch.py +17 -6
- lfx/components/input_output/chat_output.py +1 -1
- {lfx_nightly-0.1.12.dev24.dist-info → lfx_nightly-0.1.12.dev26.dist-info}/METADATA +1 -1
- {lfx_nightly-0.1.12.dev24.dist-info → lfx_nightly-0.1.12.dev26.dist-info}/RECORD +11 -11
- {lfx_nightly-0.1.12.dev24.dist-info → lfx_nightly-0.1.12.dev26.dist-info}/WHEEL +0 -0
- {lfx_nightly-0.1.12.dev24.dist-info → lfx_nightly-0.1.12.dev26.dist-info}/entry_points.txt +0 -0
|
@@ -1262,7 +1262,7 @@ class ComposioBaseComponent(Component):
|
|
|
1262
1262
|
build_config["auth_link"]["auth_tooltip"] = "Disconnect"
|
|
1263
1263
|
build_config["auth_link"]["connection_id"] = connection_id
|
|
1264
1264
|
# Reflect the connected auth scheme in the UI
|
|
1265
|
-
scheme,
|
|
1265
|
+
scheme, _ = self._get_connection_auth_info(connection_id)
|
|
1266
1266
|
if scheme:
|
|
1267
1267
|
build_config.setdefault("auth_link", {})
|
|
1268
1268
|
build_config["auth_link"]["auth_scheme"] = scheme
|
|
@@ -1630,7 +1630,7 @@ class ComposioBaseComponent(Component):
|
|
|
1630
1630
|
build_config["auth_link"]["auth_tooltip"] = "Disconnect"
|
|
1631
1631
|
build_config["auth_link"]["show"] = False
|
|
1632
1632
|
# Update auth mode UI to reflect connected scheme
|
|
1633
|
-
scheme,
|
|
1633
|
+
scheme, _ = self._get_connection_auth_info(active_connection_id)
|
|
1634
1634
|
if scheme:
|
|
1635
1635
|
build_config.setdefault("auth_link", {})
|
|
1636
1636
|
build_config["auth_link"]["auth_scheme"] = scheme
|
lfx/base/data/base_file.py
CHANGED
|
@@ -301,7 +301,7 @@ class BaseFileComponent(Component, ABC):
|
|
|
301
301
|
if not metadata:
|
|
302
302
|
metadata = await self._extract_file_metadata(data_item)
|
|
303
303
|
|
|
304
|
-
return Message(text=sep.join(parts), metadata
|
|
304
|
+
return Message(text=sep.join(parts), **metadata)
|
|
305
305
|
|
|
306
306
|
def load_files_path(self) -> Message:
|
|
307
307
|
"""Returns a Message containing file paths from loaded files.
|
|
@@ -305,3 +305,7 @@ ALL_PROVIDER_FIELDS: list[str] = [field for prov in ACTIVE_MODEL_PROVIDERS_DICT.
|
|
|
305
305
|
MODEL_DYNAMIC_UPDATE_FIELDS = ["api_key", "model", "tool_model_enabled", "base_url", "model_name"]
|
|
306
306
|
|
|
307
307
|
MODELS_METADATA = {name: {"icon": prov["icon"]} for name, prov in ACTIVE_MODEL_PROVIDERS_DICT.items()}
|
|
308
|
+
|
|
309
|
+
MODEL_PROVIDERS_LIST = ["Anthropic", "Google Generative AI", "OpenAI"]
|
|
310
|
+
|
|
311
|
+
MODEL_OPTIONS_METADATA = [MODELS_METADATA[key] for key in MODEL_PROVIDERS_LIST if key in MODELS_METADATA]
|
lfx/base/tools/run_flow.py
CHANGED
|
@@ -36,7 +36,6 @@ class RunFlowBaseComponent(Component):
|
|
|
36
36
|
name="session_id",
|
|
37
37
|
display_name="Session ID",
|
|
38
38
|
info="The session ID to run the flow in.",
|
|
39
|
-
value="",
|
|
40
39
|
advanced=True,
|
|
41
40
|
),
|
|
42
41
|
]
|
|
@@ -58,7 +57,10 @@ class RunFlowBaseComponent(Component):
|
|
|
58
57
|
tool_mode=False, # This output is not intended to be used as a tool, so tool_mode is disabled.
|
|
59
58
|
),
|
|
60
59
|
Output(
|
|
61
|
-
name="flow_outputs_message",
|
|
60
|
+
name="flow_outputs_message",
|
|
61
|
+
group_outputs=True,
|
|
62
|
+
display_name="Flow Message Output",
|
|
63
|
+
method="message_output",
|
|
62
64
|
),
|
|
63
65
|
]
|
|
64
66
|
default_keys = ["code", "_type", "flow_name_selected", "session_id"]
|
lfx/components/agents/agent.py
CHANGED
|
@@ -10,6 +10,7 @@ from lfx.base.models.model_input_constants import (
|
|
|
10
10
|
ALL_PROVIDER_FIELDS,
|
|
11
11
|
MODEL_DYNAMIC_UPDATE_FIELDS,
|
|
12
12
|
MODEL_PROVIDERS_DICT,
|
|
13
|
+
MODEL_PROVIDERS_LIST,
|
|
13
14
|
MODELS_METADATA,
|
|
14
15
|
)
|
|
15
16
|
from lfx.base.models.model_utils import get_model_name
|
|
@@ -33,9 +34,6 @@ def set_advanced_true(component_input):
|
|
|
33
34
|
return component_input
|
|
34
35
|
|
|
35
36
|
|
|
36
|
-
MODEL_PROVIDERS_LIST = ["Anthropic", "Google Generative AI", "OpenAI"]
|
|
37
|
-
|
|
38
|
-
|
|
39
37
|
class AgentComponent(ToolCallingAgentComponent):
|
|
40
38
|
display_name: str = "Agent"
|
|
41
39
|
description: str = "Define the agent's instructions, then enter a task to complete using tools."
|
|
@@ -66,8 +64,7 @@ class AgentComponent(ToolCallingAgentComponent):
|
|
|
66
64
|
real_time_refresh=True,
|
|
67
65
|
refresh_button=False,
|
|
68
66
|
input_types=[],
|
|
69
|
-
options_metadata=[MODELS_METADATA[key] for key in MODEL_PROVIDERS_LIST if key in MODELS_METADATA]
|
|
70
|
-
+ [{"icon": "brain"}],
|
|
67
|
+
options_metadata=[MODELS_METADATA[key] for key in MODEL_PROVIDERS_LIST if key in MODELS_METADATA],
|
|
71
68
|
external_options={
|
|
72
69
|
"fields": {
|
|
73
70
|
"data": {
|
|
@@ -82,7 +82,7 @@ class OpenSearchVectorStoreComponent(LCVectorStoreComponent):
|
|
|
82
82
|
},
|
|
83
83
|
],
|
|
84
84
|
value=[],
|
|
85
|
-
|
|
85
|
+
input_types=["Data"],
|
|
86
86
|
),
|
|
87
87
|
StrInput(
|
|
88
88
|
name="opensearch_url",
|
|
@@ -206,7 +206,7 @@ class OpenSearchVectorStoreComponent(LCVectorStoreComponent):
|
|
|
206
206
|
name="jwt_token",
|
|
207
207
|
display_name="JWT Token",
|
|
208
208
|
value="JWT",
|
|
209
|
-
load_from_db=
|
|
209
|
+
load_from_db=False,
|
|
210
210
|
show=True,
|
|
211
211
|
info=(
|
|
212
212
|
"Valid JSON Web Token for authentication. "
|
|
@@ -464,10 +464,21 @@ class OpenSearchVectorStoreComponent(LCVectorStoreComponent):
|
|
|
464
464
|
# Process docs_metadata table input into a dict
|
|
465
465
|
additional_metadata = {}
|
|
466
466
|
if hasattr(self, "docs_metadata") and self.docs_metadata:
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
467
|
+
logger.debug(f"[LF] Docs metadata {self.docs_metadata}")
|
|
468
|
+
if isinstance(self.docs_metadata[-1], Data):
|
|
469
|
+
logger.debug(f"[LF] Docs metadata is a Data object {self.docs_metadata}")
|
|
470
|
+
self.docs_metadata = self.docs_metadata[-1].data
|
|
471
|
+
logger.debug(f"[LF] Docs metadata is a Data object {self.docs_metadata}")
|
|
472
|
+
additional_metadata.update(self.docs_metadata)
|
|
473
|
+
else:
|
|
474
|
+
for item in self.docs_metadata:
|
|
475
|
+
if isinstance(item, dict) and "key" in item and "value" in item:
|
|
476
|
+
additional_metadata[item["key"]] = item["value"]
|
|
477
|
+
# Replace string "None" values with actual None
|
|
478
|
+
for key, value in additional_metadata.items():
|
|
479
|
+
if value == "None":
|
|
480
|
+
additional_metadata[key] = None
|
|
481
|
+
logger.debug(f"[LF] Additional metadata {additional_metadata}")
|
|
471
482
|
for doc_obj in docs:
|
|
472
483
|
data_copy = json.loads(doc_obj.model_dump_json())
|
|
473
484
|
text = data_copy.pop(doc_obj.text_key, doc_obj.default_value)
|
|
@@ -107,7 +107,7 @@ class ChatOutput(ChatComponent):
|
|
|
107
107
|
text = self.convert_to_string()
|
|
108
108
|
|
|
109
109
|
# Get source properties
|
|
110
|
-
source,
|
|
110
|
+
source, _, display_name, source_id = self.get_properties_from_source_component()
|
|
111
111
|
|
|
112
112
|
# Create or use existing Message object
|
|
113
113
|
if isinstance(self.input_value, Message):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lfx-nightly
|
|
3
|
-
Version: 0.1.12.
|
|
3
|
+
Version: 0.1.12.dev26
|
|
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
|
|
@@ -22,13 +22,13 @@ lfx/base/astra_assistants/util.py,sha256=T_W44VFoOXBF3m-0eCSrHvzbKx1gdyBF9IAWKMX
|
|
|
22
22
|
lfx/base/chains/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
lfx/base/chains/model.py,sha256=QSYJBc0Ygpx2Ko273u1idL_gPK2xpvRQgJb4oTx8x8s,766
|
|
24
24
|
lfx/base/composio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
lfx/base/composio/composio_base.py,sha256=
|
|
25
|
+
lfx/base/composio/composio_base.py,sha256=orFVSLWDCmvxarzCHAJdXlMhT7dr4MxGZNEeNmx76hc,113150
|
|
26
26
|
lfx/base/compressors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
lfx/base/compressors/model.py,sha256=-FFBAPAy9bAgvklIo7x_uwShZR5NoMHakF6f_hNnLHg,2098
|
|
28
28
|
lfx/base/curl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
lfx/base/curl/parse.py,sha256=Yw6mMbGg7e-ffrBItEUJeTiljneCXlNyt5afzEP9eUI,6094
|
|
30
30
|
lfx/base/data/__init__.py,sha256=lQsYYMyAg_jA9ZF7oc-LNZsRE2uMGT6g16WzsUByHqs,81
|
|
31
|
-
lfx/base/data/base_file.py,sha256=
|
|
31
|
+
lfx/base/data/base_file.py,sha256=v8YBn8D6AC82mBiqsi-0JeXRh_wvJgh-TtcCJJWH0gM,26973
|
|
32
32
|
lfx/base/data/docling_utils.py,sha256=gVDxOZghSJEo5n-UNkVGBQYqkvfNqkNkltBhAnoaJd4,13048
|
|
33
33
|
lfx/base/data/utils.py,sha256=dGqEO4zE5s_V2Cs4j0EEeyLjYLX6Zex-EGzIOznK76o,5960
|
|
34
34
|
lfx/base/document_transformers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -64,7 +64,7 @@ lfx/base/models/chat_result.py,sha256=-MypS6_GKXOqWevtk0xwtrsEO4mIgpPAt7-EML5n0v
|
|
|
64
64
|
lfx/base/models/google_generative_ai_constants.py,sha256=EuFd77ZrrSr6YtSKtmEaq0Nfa4y45AbDe_cz_18nReE,2564
|
|
65
65
|
lfx/base/models/groq_constants.py,sha256=WOMpYRwJVrZavsi7zGJwRHJX8ZBvdtILUOmBFv0QIPQ,5536
|
|
66
66
|
lfx/base/models/model.py,sha256=Z-qAzfzQoGILvskF60fIvjfiwPq27OtHSVHDTPNwbHE,15315
|
|
67
|
-
lfx/base/models/model_input_constants.py,sha256=
|
|
67
|
+
lfx/base/models/model_input_constants.py,sha256=WrnkAmMTk4cMjjLgBzRffJDzow7LWRpfc5GsgdRxvU4,10748
|
|
68
68
|
lfx/base/models/model_metadata.py,sha256=tNFPiRqBJ0WPKdNEqBxuoKk0n8H_h0J--bCV5pk9k4o,1325
|
|
69
69
|
lfx/base/models/model_utils.py,sha256=RwXUSIw5gdRakQ-VGbLI1iT0CeeWrVSNTgUQIrrc6uE,474
|
|
70
70
|
lfx/base/models/novita_constants.py,sha256=_mgBYGwpddUw4CLhLKJl-psOUzA_SQGHrfZJUNes6aI,1247
|
|
@@ -82,7 +82,7 @@ lfx/base/tools/base.py,sha256=CMYJzYMoJoAeN9XVDRIKLfhHZO_WMM0wFsRHQQ2ommc,940
|
|
|
82
82
|
lfx/base/tools/component_tool.py,sha256=WXc2is91CzcXWzzs5oAPaa0Rb_MpOhuzZTDDmfyoCwY,13490
|
|
83
83
|
lfx/base/tools/constants.py,sha256=AgulV7M3axHeTKQOmls-9Z1C7pTfh6Er1qahtFS2am4,1535
|
|
84
84
|
lfx/base/tools/flow_tool.py,sha256=Zz0-yyzqszir8wgd1bNyX3OVnQhM6AVFI4HnWmpQuu4,4852
|
|
85
|
-
lfx/base/tools/run_flow.py,sha256=
|
|
85
|
+
lfx/base/tools/run_flow.py,sha256=iPBX1PfKpTf--dL7lIt0g90_AkqIrJ0vvFhJ1azsBzY,9209
|
|
86
86
|
lfx/base/vectorstores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
lfx/base/vectorstores/model.py,sha256=pDAZ6D6XnMxGAV9hJjc3DYhjI9n77sc_FIs5lnpsDbU,6932
|
|
88
88
|
lfx/base/vectorstores/utils.py,sha256=OhBNYs9Z9poe82rTNFPdrESNRGuP6RO6-eOpwqJLBG0,750
|
|
@@ -110,7 +110,7 @@ lfx/components/Notion/update_page_property.py,sha256=tgmPMbD1eX58dQQNXv1w5FzDec7
|
|
|
110
110
|
lfx/components/agentql/__init__.py,sha256=Erl669Dzsk-SegsDPWTtkKbprMXVuv8UTCo5REzZGTc,56
|
|
111
111
|
lfx/components/agentql/agentql_api.py,sha256=N94yEK7ZuQCIsFBlr_8dqrJY-K1-KNb6QEEYfDIsDME,5569
|
|
112
112
|
lfx/components/agents/__init__.py,sha256=u1PH9Ui0dUgTdTZVP7cdVysCv4extdusKS_brcbE7Eg,1049
|
|
113
|
-
lfx/components/agents/agent.py,sha256=
|
|
113
|
+
lfx/components/agents/agent.py,sha256=zPI-8TRbzzuQUEcBMICqjdUjnRZ98x4PB-DhJqV447M,26597
|
|
114
114
|
lfx/components/agents/mcp_component.py,sha256=dW0eENDKz8esIShOooDEL48r3J3GoI1h0tuqIPLSnR4,25462
|
|
115
115
|
lfx/components/aiml/__init__.py,sha256=DNKB-HMFGFYmsdkON-s8557ttgBXVXADmS-BcuSQiIQ,1087
|
|
116
116
|
lfx/components/aiml/aiml.py,sha256=23Ineg1ajlCoqXgWgp50I20OnQbaleRNsw1c6IzPu3A,3877
|
|
@@ -267,7 +267,7 @@ lfx/components/duckduckgo/__init__.py,sha256=Y4zaOLVOKsD_qwF7KRLek1pcaKKHa6lGUHO
|
|
|
267
267
|
lfx/components/duckduckgo/duck_duck_go_search_run.py,sha256=LlIqWkOJPIde1zEzin6XArYLjkg4ZBNi_AEZLJkfOQo,3074
|
|
268
268
|
lfx/components/elastic/__init__.py,sha256=tEqQ9UwUyeGttqGXOS2Or7Y50rQnNRWySfMx8u4fV8U,1126
|
|
269
269
|
lfx/components/elastic/elasticsearch.py,sha256=tm5W2BP6oLrmHgrpAzi1v435Xxcj8yk4QvbrzXCnjbA,9787
|
|
270
|
-
lfx/components/elastic/opensearch.py,sha256=
|
|
270
|
+
lfx/components/elastic/opensearch.py,sha256=d4NN0Pp1Ux5JVcjlDPW3G7WyJ3UF7KLLFIXdbuFls6w,30191
|
|
271
271
|
lfx/components/embeddings/__init__.py,sha256=WP7MRGihB0vkSmqKlBhi2n-ZLMMbwboUbKjQRpIVVCQ,1136
|
|
272
272
|
lfx/components/embeddings/similarity.py,sha256=2Ux9eR9p01r57hTkpBM3Hb0amWcbYtsa-yaVrO5G7aM,2971
|
|
273
273
|
lfx/components/embeddings/text_embedder.py,sha256=VBovt4BmDdPGwhDLqRzBOUB5DIJWllJgN9PpzIpRXo0,2494
|
|
@@ -316,7 +316,7 @@ lfx/components/icosacomputing/__init__.py,sha256=NByWM-IMPf7N1lOeZDet8CvIa8A25kG
|
|
|
316
316
|
lfx/components/icosacomputing/combinatorial_reasoner.py,sha256=SFVwR_8jGHVDaGO81jj2vzzeKh892h1nMGxCDljbvNY,2766
|
|
317
317
|
lfx/components/input_output/__init__.py,sha256=BaDAE9j41eSg04p5S6MJyUs4daU8UNp5e4m988K4VLQ,1291
|
|
318
318
|
lfx/components/input_output/chat.py,sha256=RqkFWMtEwxhEizQW8JwB9Bh8lyXK1GITLFJtkHW8QMU,2851
|
|
319
|
-
lfx/components/input_output/chat_output.py,sha256=
|
|
319
|
+
lfx/components/input_output/chat_output.py,sha256=lkf00vS0CYsTIdCN_ZX7DG4IL8hD2I9xQahyuL0St-w,6641
|
|
320
320
|
lfx/components/input_output/text.py,sha256=PdKOpZG5zVIoh45uzxRbY_pcycmrLaicoFhf9dauhZ0,743
|
|
321
321
|
lfx/components/input_output/text_output.py,sha256=Ij_Xk2hubdSwZoNDoltJU78YdCw91rE9kkGbY6qLViY,820
|
|
322
322
|
lfx/components/jigsawstack/__init__.py,sha256=vqTmy5sxj_CAdkkdStaquvLrze7FMwGFTjcapd0r5eU,935
|
|
@@ -718,7 +718,7 @@ lfx/utils/schemas.py,sha256=NbOtVQBrn4d0BAu-0H_eCTZI2CXkKZlRY37XCSmuJwc,3865
|
|
|
718
718
|
lfx/utils/util.py,sha256=xGR32XDRr_TtruhjnXfI7lEWmk-vgywHAy3kz5SBowc,15725
|
|
719
719
|
lfx/utils/util_strings.py,sha256=nU_IcdphNaj6bAPbjeL-c1cInQPfTBit8mp5Y57lwQk,1686
|
|
720
720
|
lfx/utils/version.py,sha256=cHpbO0OJD2JQAvVaTH_6ibYeFbHJV0QDHs_YXXZ-bT8,671
|
|
721
|
-
lfx_nightly-0.1.12.
|
|
722
|
-
lfx_nightly-0.1.12.
|
|
723
|
-
lfx_nightly-0.1.12.
|
|
724
|
-
lfx_nightly-0.1.12.
|
|
721
|
+
lfx_nightly-0.1.12.dev26.dist-info/METADATA,sha256=sH7BGMTMe_80VdV5Kzc79idVbjAGYuEy0B50tKyMkSg,8068
|
|
722
|
+
lfx_nightly-0.1.12.dev26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
723
|
+
lfx_nightly-0.1.12.dev26.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
|
|
724
|
+
lfx_nightly-0.1.12.dev26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|