flock-core 0.4.0b32__py3-none-any.whl → 0.4.0b33__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_agent.py +11 -4
- flock/core/flock_module.py +3 -3
- flock/core/util/cli_helper.py +3 -3
- {flock_core-0.4.0b32.dist-info → flock_core-0.4.0b33.dist-info}/METADATA +1 -1
- {flock_core-0.4.0b32.dist-info → flock_core-0.4.0b33.dist-info}/RECORD +8 -8
- {flock_core-0.4.0b32.dist-info → flock_core-0.4.0b33.dist-info}/WHEEL +0 -0
- {flock_core-0.4.0b32.dist-info → flock_core-0.4.0b33.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.0b32.dist-info → flock_core-0.4.0b33.dist-info}/licenses/LICENSE +0 -0
flock/core/flock_agent.py
CHANGED
|
@@ -231,13 +231,17 @@ class FlockAgent(BaseModel, Serializable, DSPyIntegrationMixin, ABC):
|
|
|
231
231
|
agent=self.name,
|
|
232
232
|
)
|
|
233
233
|
try:
|
|
234
|
+
current_result = result
|
|
234
235
|
for module in self.get_enabled_modules():
|
|
235
|
-
await module.on_terminate(
|
|
236
|
-
self, inputs, self.context,
|
|
236
|
+
tmp_result = await module.on_terminate(
|
|
237
|
+
self, inputs, self.context, current_result
|
|
237
238
|
)
|
|
239
|
+
# If the module returns a result, use it
|
|
240
|
+
if tmp_result:
|
|
241
|
+
current_result = tmp_result
|
|
238
242
|
|
|
239
243
|
if self.write_to_file:
|
|
240
|
-
self._save_output(self.name,
|
|
244
|
+
self._save_output(self.name, current_result)
|
|
241
245
|
|
|
242
246
|
if self.wait_for_input:
|
|
243
247
|
# simple input prompt
|
|
@@ -318,12 +322,15 @@ class FlockAgent(BaseModel, Serializable, DSPyIntegrationMixin, ABC):
|
|
|
318
322
|
# Post-evaluate hooks
|
|
319
323
|
current_result = result
|
|
320
324
|
for module in self.get_enabled_modules():
|
|
321
|
-
|
|
325
|
+
tmp_result = await module.on_post_evaluate(
|
|
322
326
|
self,
|
|
323
327
|
current_inputs,
|
|
324
328
|
self.context,
|
|
325
329
|
current_result,
|
|
326
330
|
)
|
|
331
|
+
# If the module returns a result, use it
|
|
332
|
+
if tmp_result:
|
|
333
|
+
current_result = tmp_result
|
|
327
334
|
|
|
328
335
|
logger.debug(f"Evaluation completed for agent '{self.name}'")
|
|
329
336
|
return current_result
|
flock/core/flock_module.py
CHANGED
|
@@ -76,7 +76,7 @@ class FlockModule(BaseModel, ABC):
|
|
|
76
76
|
inputs: dict[str, Any],
|
|
77
77
|
context: FlockContext | None = None,
|
|
78
78
|
result: dict[str, Any] | None = None,
|
|
79
|
-
) -> dict[str, Any]:
|
|
79
|
+
) -> dict[str, Any] | None:
|
|
80
80
|
"""Called after agent evaluation, can modify results."""
|
|
81
81
|
return result
|
|
82
82
|
|
|
@@ -86,9 +86,9 @@ class FlockModule(BaseModel, ABC):
|
|
|
86
86
|
inputs: dict[str, Any],
|
|
87
87
|
context: FlockContext | None = None,
|
|
88
88
|
result: dict[str, Any] | None = None,
|
|
89
|
-
) -> None:
|
|
89
|
+
) -> dict[str, Any] | None:
|
|
90
90
|
"""Called when the agent finishes running."""
|
|
91
|
-
|
|
91
|
+
return result
|
|
92
92
|
|
|
93
93
|
async def on_error(
|
|
94
94
|
self,
|
flock/core/util/cli_helper.py
CHANGED
|
@@ -62,9 +62,9 @@ def init_console(clear_screen: bool = True, show_banner: bool = True):
|
|
|
62
62
|
|
|
63
63
|
if show_banner:
|
|
64
64
|
console.print(banner_text)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
console.print(
|
|
66
|
+
"[italic]'Magpie'[/] milestone - [bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n"
|
|
67
|
+
)
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
def display_banner_no_version():
|
|
@@ -20,10 +20,10 @@ flock/cli/yaml_editor.py,sha256=K3N0bh61G1TSDAZDnurqW9e_-hO6CtSQKXQqlDhCjVo,1252
|
|
|
20
20
|
flock/cli/assets/release_notes.md,sha256=bqnk50jxM3w5uY44Dc7MkdT8XmRREFxrVBAG9XCOSSU,4896
|
|
21
21
|
flock/core/__init__.py,sha256=p7lmQULRu9ejIAELfanZiyMhW0CougIPvyFHW2nqBFQ,847
|
|
22
22
|
flock/core/flock.py,sha256=_T_KAFePtEGDzfiFGV1HCdz7VHzj_U0cCquhAQ4xMAM,28199
|
|
23
|
-
flock/core/flock_agent.py,sha256=
|
|
23
|
+
flock/core/flock_agent.py,sha256=JTqaGD_OnZSd3bVU989WMsK1rAT6UGn-JYrPxFV15EE,39576
|
|
24
24
|
flock/core/flock_evaluator.py,sha256=dOXZeDOGZcAmJ9ahqq_2bdGUU1VOXY4skmwTVpAjiVw,1685
|
|
25
25
|
flock/core/flock_factory.py,sha256=_4zsjkEmJnCR7IvJ3SUHnDbX6c7Tt3E4P5ohxwKvE6w,3173
|
|
26
|
-
flock/core/flock_module.py,sha256=
|
|
26
|
+
flock/core/flock_module.py,sha256=UCK6TFe4viXs596zeng0GD3gln4ZNGu_gCWkXIIMREg,3090
|
|
27
27
|
flock/core/flock_registry.py,sha256=Qcu9juUFNyDAOEsqVxauwVlWdfgKZrSzc8yT8JMiK-c,24246
|
|
28
28
|
flock/core/flock_router.py,sha256=1OAXDsdaIIFApEfo6SRfFEDoTuGt3Si7n2MXiySEfis,2644
|
|
29
29
|
flock/core/api/__init__.py,sha256=OKlhzDWZJfA6ddBwxQUmATY0TSzESsH032u00iVGvdA,228
|
|
@@ -71,7 +71,7 @@ flock/core/tools/llm_tools.py,sha256=Bdt4Dpur5dGpxd2KFEQyxjfZazvW1HCDKY6ydMj6UgQ
|
|
|
71
71
|
flock/core/tools/markdown_tools.py,sha256=W6fGM48yGHbifVlaOk1jOtVcybfRbRmf20VbDOZv8S4,6031
|
|
72
72
|
flock/core/tools/zendesk_tools.py,sha256=deZAyUi9j-_yZaTayLQVJaFXIqIct-P6C8IGN5UU_tM,3528
|
|
73
73
|
flock/core/tools/dev_tools/github.py,sha256=a2OTPXS7kWOVA4zrZHynQDcsmEi4Pac5MfSjQOLePzA,5308
|
|
74
|
-
flock/core/util/cli_helper.py,sha256=
|
|
74
|
+
flock/core/util/cli_helper.py,sha256=g4u8kCtbwHRXETzBz1cw52_8muSWbWlr00CqST525jI,49963
|
|
75
75
|
flock/core/util/file_path_utils.py,sha256=Odf7uU32C-x1KNighbNERSiMtkzW4h8laABIoFK7A5M,6246
|
|
76
76
|
flock/core/util/hydrator.py,sha256=QJvCA8F4nkSP5akp3yg0cT6oaajOr1n7sldW5dCs6Lo,10733
|
|
77
77
|
flock/core/util/input_resolver.py,sha256=KPoPSpklyCoiR2t5r6J6GJHegmPLFZ0YE126VcKBewM,4703
|
|
@@ -445,8 +445,8 @@ flock/workflow/agent_execution_activity.py,sha256=Gy6FtuVAjf0NiUXmC3syS2eJpNQF4R
|
|
|
445
445
|
flock/workflow/flock_workflow.py,sha256=iSUF_soFvWar0ffpkzE4irkDZRx0p4HnwmEBi_Ne2sY,9666
|
|
446
446
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
447
447
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
448
|
-
flock_core-0.4.
|
|
449
|
-
flock_core-0.4.
|
|
450
|
-
flock_core-0.4.
|
|
451
|
-
flock_core-0.4.
|
|
452
|
-
flock_core-0.4.
|
|
448
|
+
flock_core-0.4.0b33.dist-info/METADATA,sha256=F55blOoGy7L3heUhWO4SE0TTHMj1fhARNB0WRI_vDQM,17125
|
|
449
|
+
flock_core-0.4.0b33.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
450
|
+
flock_core-0.4.0b33.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
451
|
+
flock_core-0.4.0b33.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
452
|
+
flock_core-0.4.0b33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|