lfx-nightly 0.1.12.dev41__py3-none-any.whl → 0.1.12.dev42__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.
- lfx/components/agents/cuga_agent.py +26 -8
- {lfx_nightly-0.1.12.dev41.dist-info → lfx_nightly-0.1.12.dev42.dist-info}/METADATA +1 -1
- {lfx_nightly-0.1.12.dev41.dist-info → lfx_nightly-0.1.12.dev42.dist-info}/RECORD +5 -5
- {lfx_nightly-0.1.12.dev41.dist-info → lfx_nightly-0.1.12.dev42.dist-info}/WHEEL +0 -0
- {lfx_nightly-0.1.12.dev41.dist-info → lfx_nightly-0.1.12.dev42.dist-info}/entry_points.txt +0 -0
|
@@ -254,14 +254,32 @@ class CugaComponent(ToolCallingAgentComponent):
|
|
|
254
254
|
}
|
|
255
255
|
logger.debug(f"LLM MODEL TYPE: {type(llm)}")
|
|
256
256
|
if current_input:
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
257
|
+
try:
|
|
258
|
+
from cuga.config import settings as cuga_settings
|
|
259
|
+
|
|
260
|
+
logger.info("Updating cuga settings programmatically")
|
|
261
|
+
cuga_settings.set("advanced_features.registry", False) # noqa: FBT003
|
|
262
|
+
|
|
263
|
+
if self.browser_enabled:
|
|
264
|
+
logger.info("browser_enabled is true, setting mode to hybrid")
|
|
265
|
+
cuga_settings.set("advanced_features.mode", "hybrid")
|
|
266
|
+
cuga_settings.set("advanced_features.use_vision", False) # noqa: FBT003
|
|
267
|
+
else:
|
|
268
|
+
logger.info("browser_enabled is false, setting mode to api")
|
|
269
|
+
cuga_settings.set("advanced_features.mode", "api")
|
|
270
|
+
|
|
271
|
+
logger.info(f"Cuga settings updated - MODE: {cuga_settings.get('advanced_features.mode')}")
|
|
272
|
+
except (ImportError, AttributeError) as e:
|
|
273
|
+
logger.warning(f"Could not update cuga settings: {e}")
|
|
274
|
+
os.environ["DYNACONF_ADVANCED_FEATURES__REGISTRY"] = "false"
|
|
275
|
+
if self.browser_enabled:
|
|
276
|
+
logger.info("browser_enabled is true, setting env to hybrid")
|
|
277
|
+
os.environ["DYNACONF_ADVANCED_FEATURES__MODE"] = "hybrid"
|
|
278
|
+
os.environ["DYNACONF_ADVANCED_FEATURES__USE_VISION"] = "false"
|
|
279
|
+
else:
|
|
280
|
+
logger.info("browser_enabled is false, setting env to api")
|
|
281
|
+
os.environ["DYNACONF_ADVANCED_FEATURES__MODE"] = "api"
|
|
282
|
+
|
|
265
283
|
from cuga.backend.activity_tracker.tracker import ActivityTracker
|
|
266
284
|
from cuga.backend.cuga_graph.utils.agent_loop import StreamEvent
|
|
267
285
|
from cuga.backend.cuga_graph.utils.controller import (
|
|
@@ -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.dev42
|
|
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
|
|
@@ -113,7 +113,7 @@ lfx/components/agentql/__init__.py,sha256=Erl669Dzsk-SegsDPWTtkKbprMXVuv8UTCo5RE
|
|
|
113
113
|
lfx/components/agentql/agentql_api.py,sha256=N94yEK7ZuQCIsFBlr_8dqrJY-K1-KNb6QEEYfDIsDME,5569
|
|
114
114
|
lfx/components/agents/__init__.py,sha256=UBu5kO9hp8yFyxTU-u9KHN9zTSoHhJSYdKtRuT5ig9c,1164
|
|
115
115
|
lfx/components/agents/agent.py,sha256=cv8CqEvLKpTsR9YAg09rqjxEXbW0_GzW8oUxeWc4pHY,26681
|
|
116
|
-
lfx/components/agents/cuga_agent.py,sha256=
|
|
116
|
+
lfx/components/agents/cuga_agent.py,sha256=r_342LveLdERtvE84UJJOdKTEwWSIjvASRYke9JV2Ik,44494
|
|
117
117
|
lfx/components/agents/mcp_component.py,sha256=mE2HvbHcdkuWWylxmaNNZobbtgBRktOOakeGwUYs7Qs,25586
|
|
118
118
|
lfx/components/aiml/__init__.py,sha256=DNKB-HMFGFYmsdkON-s8557ttgBXVXADmS-BcuSQiIQ,1087
|
|
119
119
|
lfx/components/aiml/aiml.py,sha256=23Ineg1ajlCoqXgWgp50I20OnQbaleRNsw1c6IzPu3A,3877
|
|
@@ -746,7 +746,7 @@ lfx/utils/schemas.py,sha256=NbOtVQBrn4d0BAu-0H_eCTZI2CXkKZlRY37XCSmuJwc,3865
|
|
|
746
746
|
lfx/utils/util.py,sha256=Ww85wbr1-vjh2pXVtmTqoUVr6MXAW8S7eDx_Ys6HpE8,20696
|
|
747
747
|
lfx/utils/util_strings.py,sha256=nU_IcdphNaj6bAPbjeL-c1cInQPfTBit8mp5Y57lwQk,1686
|
|
748
748
|
lfx/utils/version.py,sha256=cHpbO0OJD2JQAvVaTH_6ibYeFbHJV0QDHs_YXXZ-bT8,671
|
|
749
|
-
lfx_nightly-0.1.12.
|
|
750
|
-
lfx_nightly-0.1.12.
|
|
751
|
-
lfx_nightly-0.1.12.
|
|
752
|
-
lfx_nightly-0.1.12.
|
|
749
|
+
lfx_nightly-0.1.12.dev42.dist-info/METADATA,sha256=_Pm39aLHP86G6558BeMwryBcy2Ft_BFtKp_zjx9z7rI,8290
|
|
750
|
+
lfx_nightly-0.1.12.dev42.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
751
|
+
lfx_nightly-0.1.12.dev42.dist-info/entry_points.txt,sha256=1724p3RHDQRT2CKx_QRzEIa7sFuSVO0Ux70YfXfoMT4,42
|
|
752
|
+
lfx_nightly-0.1.12.dev42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|