flock-core 0.4.0b21__py3-none-any.whl → 0.4.0b22__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 +1 -1
- flock/evaluators/declarative/declarative_evaluator.py +7 -3
- {flock_core-0.4.0b21.dist-info → flock_core-0.4.0b22.dist-info}/METADATA +1 -1
- {flock_core-0.4.0b21.dist-info → flock_core-0.4.0b22.dist-info}/RECORD +7 -7
- {flock_core-0.4.0b21.dist-info → flock_core-0.4.0b22.dist-info}/WHEEL +0 -0
- {flock_core-0.4.0b21.dist-info → flock_core-0.4.0b22.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.0b21.dist-info → flock_core-0.4.0b22.dist-info}/licenses/LICENSE +0 -0
|
@@ -408,7 +408,7 @@ class DSPyIntegrationMixin:
|
|
|
408
408
|
|
|
409
409
|
lm = dspy.settings.get("lm")
|
|
410
410
|
cost = sum([x["cost"] for x in lm.history if x["cost"] is not None])
|
|
411
|
-
lm_history = lm.
|
|
411
|
+
lm_history = lm.history
|
|
412
412
|
|
|
413
413
|
return final_result, cost, lm_history
|
|
414
414
|
|
|
@@ -112,7 +112,9 @@ class DeclarativeEvaluator(FlockEvaluator, DSPyIntegrationMixin, PromptParserMix
|
|
|
112
112
|
if delta_content:
|
|
113
113
|
console.print(delta_content, end="")
|
|
114
114
|
|
|
115
|
-
result_dict, cost, lm_history = self._process_result(
|
|
115
|
+
result_dict, cost, lm_history = self._process_result(
|
|
116
|
+
chunk, inputs
|
|
117
|
+
)
|
|
116
118
|
self.cost = cost
|
|
117
119
|
self.lm_history = lm_history
|
|
118
120
|
|
|
@@ -126,7 +128,9 @@ class DeclarativeEvaluator(FlockEvaluator, DSPyIntegrationMixin, PromptParserMix
|
|
|
126
128
|
try:
|
|
127
129
|
# Ensure the call is awaited if the underlying task is async
|
|
128
130
|
result_obj = agent_task(**inputs)
|
|
129
|
-
result_dict, cost, lm_history = self._process_result(
|
|
131
|
+
result_dict, cost, lm_history = self._process_result(
|
|
132
|
+
result_obj, inputs
|
|
133
|
+
)
|
|
130
134
|
self.cost = cost
|
|
131
135
|
self.lm_history = lm_history
|
|
132
136
|
return self.filter_thought_process(
|
|
@@ -140,7 +144,7 @@ class DeclarativeEvaluator(FlockEvaluator, DSPyIntegrationMixin, PromptParserMix
|
|
|
140
144
|
raise RuntimeError(f"Evaluation failed: {e}") from e
|
|
141
145
|
|
|
142
146
|
def filter_thought_process(
|
|
143
|
-
result_dict: dict[str, Any], include_thought_process: bool
|
|
147
|
+
self, result_dict: dict[str, Any], include_thought_process: bool
|
|
144
148
|
) -> dict[str, Any]:
|
|
145
149
|
"""Filter out thought process from the result dictionary."""
|
|
146
150
|
if include_thought_process:
|
|
@@ -56,7 +56,7 @@ flock/core/logging/span_middleware/baggage_span_processor.py,sha256=gJfRl8FeB6jd
|
|
|
56
56
|
flock/core/logging/telemetry_exporter/base_exporter.py,sha256=rQJJzS6q9n2aojoSqwCnl7ZtHrh5LZZ-gkxUuI5WfrQ,1124
|
|
57
57
|
flock/core/logging/telemetry_exporter/file_exporter.py,sha256=nKAjJSZtA7FqHSTuTiFtYYepaxOq7l1rDvs8U8rSBlA,3023
|
|
58
58
|
flock/core/logging/telemetry_exporter/sqlite_exporter.py,sha256=CDsiMb9QcqeXelZ6ZqPSS56ovMPGqOu6whzBZRK__Vg,3498
|
|
59
|
-
flock/core/mixin/dspy_integration.py,sha256=
|
|
59
|
+
flock/core/mixin/dspy_integration.py,sha256=JlGtakuy_lXXEEXBycd7ygmdUBKS-4qPWNqx3Wqfy78,17187
|
|
60
60
|
flock/core/mixin/prompt_parser.py,sha256=eOqI-FK3y17gVqpc_y5GF-WmK1Jv8mFlkZxTcgweoxI,5121
|
|
61
61
|
flock/core/serialization/__init__.py,sha256=CML7fPgG6p4c0CDBlJ_uwV1aZZhJKK9uy3IoIHfO87w,431
|
|
62
62
|
flock/core/serialization/callable_registry.py,sha256=sUZECTZWsM3fJ8FDRQ-FgLNW9hF26nY17AD6fJKADMc,1419
|
|
@@ -76,7 +76,7 @@ flock/core/util/file_path_utils.py,sha256=Odf7uU32C-x1KNighbNERSiMtkzW4h8laABIoF
|
|
|
76
76
|
flock/core/util/hydrator.py,sha256=QJvCA8F4nkSP5akp3yg0cT6oaajOr1n7sldW5dCs6Lo,10733
|
|
77
77
|
flock/core/util/input_resolver.py,sha256=g9vDPdY4OH-G7qjas5ksGEHueokHGFPMoLOvC-ngeLo,5984
|
|
78
78
|
flock/core/util/loader.py,sha256=j3q2qem5bFMP2SmMuYjb-ISxsNGNZd1baQmpvAnRUUk,2244
|
|
79
|
-
flock/evaluators/declarative/declarative_evaluator.py,sha256=
|
|
79
|
+
flock/evaluators/declarative/declarative_evaluator.py,sha256=6FCUPf0ArckwYzNXcYAd4NcR0254e24jJadSxbStMx0,5987
|
|
80
80
|
flock/evaluators/memory/azure_search_evaluator.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
81
81
|
flock/evaluators/memory/memory_evaluator.py,sha256=SmerXyNaqm8DTV0yw-WqWkn9DXIf6x-nPG1eyTV6NY8,3452
|
|
82
82
|
flock/evaluators/natural_language/natural_language_evaluator.py,sha256=6nVEeh8_uwv_h-d3FWlA0GbzDzRtdhvxCGKirHtyvOU,2012
|
|
@@ -441,8 +441,8 @@ flock/workflow/activities.py,sha256=eVZDnxGJl_quNO-UTV3YgvTV8LrRaHN3QDAA1ANKzac,
|
|
|
441
441
|
flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
|
|
442
442
|
flock/workflow/temporal_setup.py,sha256=VWBgmBgfTBjwM5ruS_dVpA5AVxx6EZ7oFPGw4j3m0l0,1091
|
|
443
443
|
flock/workflow/workflow.py,sha256=I9MryXW_bqYVTHx-nl2epbTqeRy27CAWHHA7ZZA0nAk,1696
|
|
444
|
-
flock_core-0.4.
|
|
445
|
-
flock_core-0.4.
|
|
446
|
-
flock_core-0.4.
|
|
447
|
-
flock_core-0.4.
|
|
448
|
-
flock_core-0.4.
|
|
444
|
+
flock_core-0.4.0b22.dist-info/METADATA,sha256=oV2HF6qAqxnneQoXA-vPHC1kDVw2FVb71g49Ru-IsxY,12970
|
|
445
|
+
flock_core-0.4.0b22.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
446
|
+
flock_core-0.4.0b22.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
447
|
+
flock_core-0.4.0b22.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
448
|
+
flock_core-0.4.0b22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|