flock-core 0.2.7__py3-none-any.whl → 0.2.9__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/mixin/dspy_integration.py +12 -12
- flock/core/util/cli_helper.py +9 -11
- {flock_core-0.2.7.dist-info → flock_core-0.2.9.dist-info}/METADATA +1 -1
- {flock_core-0.2.7.dist-info → flock_core-0.2.9.dist-info}/RECORD +7 -7
- {flock_core-0.2.7.dist-info → flock_core-0.2.9.dist-info}/WHEEL +0 -0
- {flock_core-0.2.7.dist-info → flock_core-0.2.9.dist-info}/entry_points.txt +0 -0
- {flock_core-0.2.7.dist-info → flock_core-0.2.9.dist-info}/licenses/LICENSE +0 -0
|
@@ -68,18 +68,18 @@ class DSPyIntegrationMixin:
|
|
|
68
68
|
try:
|
|
69
69
|
# TODO: We have to find a way to avoid using eval here.
|
|
70
70
|
# This is a security risk, as it allows arbitrary code execution.
|
|
71
|
-
|
|
72
|
-
field_type = dspy.PythonInterpreter(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
).execute(type_str)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
71
|
+
# Figure out why the following code doesn't work as well as the eval.
|
|
72
|
+
# field_type = dspy.PythonInterpreter(
|
|
73
|
+
# sys.modules[__name__].__dict__
|
|
74
|
+
# | sys.modules["__main__"].__dict__
|
|
75
|
+
# ).execute(type_str)
|
|
76
|
+
|
|
77
|
+
try:
|
|
78
|
+
field_type = eval(type_str, sys.modules[__name__].__dict__)
|
|
79
|
+
except Exception:
|
|
80
|
+
field_type = eval(
|
|
81
|
+
type_str, sys.modules["__main__"].__dict__
|
|
82
|
+
)
|
|
83
83
|
|
|
84
84
|
except Exception:
|
|
85
85
|
field_type = str
|
flock/core/util/cli_helper.py
CHANGED
|
@@ -14,19 +14,17 @@ console = Console()
|
|
|
14
14
|
def display_banner():
|
|
15
15
|
"""Display the Flock banner."""
|
|
16
16
|
banner_text = Text(
|
|
17
|
-
"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
f"""
|
|
18
|
+
🦆 🐓 🐤 🐧
|
|
19
|
+
╭━━━━━━━━━━━━━━━━━━━━━━━━╮
|
|
20
|
+
│ ▒█▀▀▀ █░░ █▀▀█ █▀▀ █░█ │
|
|
21
|
+
│ ▒█▀▀▀ █░░ █░░█ █░░ █▀▄ │
|
|
22
|
+
│ ▒█░░░ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀░▀ │
|
|
23
|
+
╰━━━━━━━━━v{__version__}━━━━━━━━━╯
|
|
24
|
+
🦆 🐤 🐧 🐓
|
|
25
25
|
""",
|
|
26
26
|
justify="center",
|
|
27
27
|
style="bold orange3",
|
|
28
28
|
)
|
|
29
29
|
console.print(banner_text)
|
|
30
|
-
console.print(
|
|
31
|
-
f"[bold]v{__version__}[/] - [bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n"
|
|
32
|
-
)
|
|
30
|
+
console.print(f"[bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n")
|
|
@@ -22,12 +22,12 @@ flock/core/logging/span_middleware/baggage_span_processor.py,sha256=gJfRl8FeB6jd
|
|
|
22
22
|
flock/core/logging/telemetry_exporter/base_exporter.py,sha256=rQJJzS6q9n2aojoSqwCnl7ZtHrh5LZZ-gkxUuI5WfrQ,1124
|
|
23
23
|
flock/core/logging/telemetry_exporter/file_exporter.py,sha256=nKAjJSZtA7FqHSTuTiFtYYepaxOq7l1rDvs8U8rSBlA,3023
|
|
24
24
|
flock/core/logging/telemetry_exporter/sqlite_exporter.py,sha256=CDsiMb9QcqeXelZ6ZqPSS56ovMPGqOu6whzBZRK__Vg,3498
|
|
25
|
-
flock/core/mixin/dspy_integration.py,sha256=
|
|
25
|
+
flock/core/mixin/dspy_integration.py,sha256=WHCCIxpb0Pk0NVV5tPEcpTWcwPMTVATY4O5yflgKrMA,7460
|
|
26
26
|
flock/core/mixin/prompt_parser.py,sha256=eOqI-FK3y17gVqpc_y5GF-WmK1Jv8mFlkZxTcgweoxI,5121
|
|
27
27
|
flock/core/registry/agent_registry.py,sha256=QHdr3Cb-32PEdz8jFCIZSH9OlfpRwAJMtSRpHCWJDq4,4889
|
|
28
28
|
flock/core/tools/basic_tools.py,sha256=OwWaFu4NoVrc3Uijj56RY9XDDaP_mOnEa5B3wSWwwLE,4756
|
|
29
29
|
flock/core/tools/dev_tools/github.py,sha256=a2OTPXS7kWOVA4zrZHynQDcsmEi4Pac5MfSjQOLePzA,5308
|
|
30
|
-
flock/core/util/cli_helper.py,sha256=
|
|
30
|
+
flock/core/util/cli_helper.py,sha256=qBB5C4MU-JqohHVjdI8E7od5ZAnzM_0IteZndCc5RBQ,939
|
|
31
31
|
flock/core/util/input_resolver.py,sha256=g9vDPdY4OH-G7qjas5ksGEHueokHGFPMoLOvC-ngeLo,5984
|
|
32
32
|
flock/core/util/serializable.py,sha256=SymJ0YrjBx48mOBItYSqoRpKuzIc4vKWRS6ScTzre7s,2573
|
|
33
33
|
flock/interpreter/python_interpreter.py,sha256=pq2e7KJfAYtBCP2hhbtFNeg18QdMFF66esoYn3MHfA4,26177
|
|
@@ -374,8 +374,8 @@ flock/workflow/activities.py,sha256=YEg-Gr8kzVsxWsmsZguIVhX2XwMRvhZ2OlnsJoG5g_A,
|
|
|
374
374
|
flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
|
|
375
375
|
flock/workflow/temporal_setup.py,sha256=VWBgmBgfTBjwM5ruS_dVpA5AVxx6EZ7oFPGw4j3m0l0,1091
|
|
376
376
|
flock/workflow/workflow.py,sha256=I9MryXW_bqYVTHx-nl2epbTqeRy27CAWHHA7ZZA0nAk,1696
|
|
377
|
-
flock_core-0.2.
|
|
378
|
-
flock_core-0.2.
|
|
379
|
-
flock_core-0.2.
|
|
380
|
-
flock_core-0.2.
|
|
381
|
-
flock_core-0.2.
|
|
377
|
+
flock_core-0.2.9.dist-info/METADATA,sha256=dLxdYNdWIn4ZlvhIT3HZJwd_C8ZB3eOvmbK9_KJw_nA,11569
|
|
378
|
+
flock_core-0.2.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
379
|
+
flock_core-0.2.9.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
380
|
+
flock_core-0.2.9.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
381
|
+
flock_core-0.2.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|