flock-core 0.4.531__py3-none-any.whl → 0.4.532__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 flock-core might be problematic. Click here for more details.
- flock/core/flock.py +23 -0
- {flock_core-0.4.531.dist-info → flock_core-0.4.532.dist-info}/METADATA +3 -3
- {flock_core-0.4.531.dist-info → flock_core-0.4.532.dist-info}/RECORD +6 -6
- {flock_core-0.4.531.dist-info → flock_core-0.4.532.dist-info}/WHEEL +0 -0
- {flock_core-0.4.531.dist-info → flock_core-0.4.532.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.531.dist-info → flock_core-0.4.532.dist-info}/licenses/LICENSE +0 -0
flock/core/flock.py
CHANGED
|
@@ -179,6 +179,27 @@ class Flock(BaseModel, Serializable):
|
|
|
179
179
|
if not future.done():
|
|
180
180
|
future.cancel()
|
|
181
181
|
|
|
182
|
+
|
|
183
|
+
def _patch_litellm_proxy_imports(self) -> None:
|
|
184
|
+
"""Stub litellm proxy_server to avoid optional proxy deps when not used.
|
|
185
|
+
|
|
186
|
+
Some litellm versions import `litellm.proxy.proxy_server` during standard logging
|
|
187
|
+
to read `general_settings`, which pulls in optional dependencies like `apscheduler`.
|
|
188
|
+
We provide a stub so imports succeed but cold storage remains disabled.
|
|
189
|
+
"""
|
|
190
|
+
try:
|
|
191
|
+
import sys
|
|
192
|
+
import types
|
|
193
|
+
|
|
194
|
+
if "litellm.proxy.proxy_server" not in sys.modules:
|
|
195
|
+
stub = types.ModuleType("litellm.proxy.proxy_server")
|
|
196
|
+
# Minimal surface that cold_storage_handler accesses
|
|
197
|
+
setattr(stub, "general_settings", {})
|
|
198
|
+
sys.modules["litellm.proxy.proxy_server"] = stub
|
|
199
|
+
except Exception as e:
|
|
200
|
+
# Safe to ignore; worst case litellm will log a warning
|
|
201
|
+
logger.debug(f"Failed to stub litellm proxy_server: {e}")
|
|
202
|
+
|
|
182
203
|
def __init__(
|
|
183
204
|
self,
|
|
184
205
|
name: str | None = None,
|
|
@@ -217,6 +238,8 @@ class Flock(BaseModel, Serializable):
|
|
|
217
238
|
self._start_input = {}
|
|
218
239
|
self._mgr = FlockServerManager()
|
|
219
240
|
|
|
241
|
+
self._patch_litellm_proxy_imports()
|
|
242
|
+
|
|
220
243
|
# Register passed servers
|
|
221
244
|
# (need to be registered first so that agents can retrieve them from the registry)
|
|
222
245
|
# This will also add them to the managed list of self._mgr
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flock-core
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.532
|
|
4
4
|
Summary: Declarative LLM Orchestration at Scale
|
|
5
5
|
Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -17,7 +17,7 @@ Requires-Dist: devtools>=0.12.2
|
|
|
17
17
|
Requires-Dist: dspy==2.6.23
|
|
18
18
|
Requires-Dist: fastapi>=0.115.8
|
|
19
19
|
Requires-Dist: httpx>=0.28.1
|
|
20
|
-
Requires-Dist: litellm
|
|
20
|
+
Requires-Dist: litellm>=v1.75.3
|
|
21
21
|
Requires-Dist: loguru>=0.7.3
|
|
22
22
|
Requires-Dist: markdown2>=2.5.3
|
|
23
23
|
Requires-Dist: mcp>=1.7.1
|
|
@@ -47,7 +47,7 @@ Requires-Dist: thefuzz>=0.22.1
|
|
|
47
47
|
Requires-Dist: tiktoken>=0.8.0
|
|
48
48
|
Requires-Dist: toml>=0.10.2
|
|
49
49
|
Requires-Dist: tqdm>=4.60.1
|
|
50
|
-
Requires-Dist: uvicorn>=0.29.
|
|
50
|
+
Requires-Dist: uvicorn>=0.29.1
|
|
51
51
|
Requires-Dist: wd-di>=0.2.14
|
|
52
52
|
Requires-Dist: websockets>=13.0.1
|
|
53
53
|
Requires-Dist: werkzeug>=3.1.3
|
|
@@ -26,7 +26,7 @@ flock/cli/view_results.py,sha256=dOzK0O1FHSIDERnx48y-2Xke9BkOHS7pcOhs64AyIg0,781
|
|
|
26
26
|
flock/cli/yaml_editor.py,sha256=K3N0bh61G1TSDAZDnurqW9e_-hO6CtSQKXQqlDhCjVo,12527
|
|
27
27
|
flock/cli/assets/release_notes.md,sha256=bqnk50jxM3w5uY44Dc7MkdT8XmRREFxrVBAG9XCOSSU,4896
|
|
28
28
|
flock/core/__init__.py,sha256=juwyNr3QqKXUS5-E3hlMYRhgqHgQBqgtP12OF3tUCAI,1249
|
|
29
|
-
flock/core/flock.py,sha256=
|
|
29
|
+
flock/core/flock.py,sha256=ITtBIkoSjq31_QR5-enxTBztEYRsr7cef20INQ-ECLE,39214
|
|
30
30
|
flock/core/flock_agent.py,sha256=Hl6TONSiJi2I-N_49-1hkW2q_hyPXMebMr-5oZLI-PY,48842
|
|
31
31
|
flock/core/flock_evaluator.py,sha256=TPy6u6XX3cqkY1r9NW1w2lTwCMNW7pxhFYKLefnEbXg,1820
|
|
32
32
|
flock/core/flock_factory.py,sha256=OWyJ7VNb-aH6oo6IeJnBfwTNdiUrcNRiUHVJ82KKG5Q,18814
|
|
@@ -563,8 +563,8 @@ flock/workflow/agent_execution_activity.py,sha256=Gy6FtuVAjf0NiUXmC3syS2eJpNQF4R
|
|
|
563
563
|
flock/workflow/flock_workflow.py,sha256=iSUF_soFvWar0ffpkzE4irkDZRx0p4HnwmEBi_Ne2sY,9666
|
|
564
564
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
565
565
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
566
|
-
flock_core-0.4.
|
|
567
|
-
flock_core-0.4.
|
|
568
|
-
flock_core-0.4.
|
|
569
|
-
flock_core-0.4.
|
|
570
|
-
flock_core-0.4.
|
|
566
|
+
flock_core-0.4.532.dist-info/METADATA,sha256=s30hFRT1nAen8g0axc5mhHTLwtfikpBqYjNU3rwIjkE,22894
|
|
567
|
+
flock_core-0.4.532.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
568
|
+
flock_core-0.4.532.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
569
|
+
flock_core-0.4.532.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
570
|
+
flock_core-0.4.532.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|