flock-core 0.5.0b11__py3-none-any.whl → 0.5.0b13__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/components/evaluation/declarative_evaluation_component.py +4 -5
- flock/components/utility/output_utility_component.py +2 -1
- flock/core/flock_factory.py +1 -1
- flock/core/orchestration/flock_execution.py +1 -1
- flock/core/orchestration/flock_initialization.py +1 -1
- flock/core/util/cli_helper.py +4 -1
- {flock_core-0.5.0b11.dist-info → flock_core-0.5.0b13.dist-info}/METADATA +5 -5
- {flock_core-0.5.0b11.dist-info → flock_core-0.5.0b13.dist-info}/RECORD +11 -11
- {flock_core-0.5.0b11.dist-info → flock_core-0.5.0b13.dist-info}/WHEEL +0 -0
- {flock_core-0.5.0b11.dist-info → flock_core-0.5.0b13.dist-info}/entry_points.txt +0 -0
- {flock_core-0.5.0b11.dist-info → flock_core-0.5.0b13.dist-info}/licenses/LICENSE +0 -0
|
@@ -28,7 +28,7 @@ class DeclarativeEvaluationConfig(AgentComponentConfig):
|
|
|
28
28
|
override_evaluator_type: str | None = None
|
|
29
29
|
model: str | None = "openai/gpt-4o"
|
|
30
30
|
use_cache: bool = True
|
|
31
|
-
temperature: float =
|
|
31
|
+
temperature: float = 1.0
|
|
32
32
|
max_tokens: int = 8192
|
|
33
33
|
max_retries: int = 3
|
|
34
34
|
max_tool_calls: int = 10
|
|
@@ -70,12 +70,11 @@ class DeclarativeEvaluationComponent(
|
|
|
70
70
|
super().__init__(**data)
|
|
71
71
|
|
|
72
72
|
@override
|
|
73
|
-
def set_model(self, model: str, temperature: float =
|
|
73
|
+
def set_model(self, model: str, temperature: float = 1.0, max_tokens: int = 8192) -> None:
|
|
74
74
|
"""Set the model for the evaluation component."""
|
|
75
75
|
self.config.model = model
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
self.config.max_tokens = 32768
|
|
76
|
+
self.config.temperature = temperature
|
|
77
|
+
self.config.max_tokens = max_tokens
|
|
79
78
|
|
|
80
79
|
async def evaluate_core(
|
|
81
80
|
self,
|
|
@@ -180,7 +180,8 @@ class OutputUtilityComponent(UtilityComponent):
|
|
|
180
180
|
max_length=self.config.max_length,
|
|
181
181
|
render_table=self.config.render_table,
|
|
182
182
|
)
|
|
183
|
-
|
|
183
|
+
model = agent.model if agent.model else context.get_variable("model")
|
|
184
|
+
self._formatter.display_result(result_to_display, agent.name + " - " + model)
|
|
184
185
|
|
|
185
186
|
return result # Return the original, unmodified result
|
|
186
187
|
|
flock/core/flock_factory.py
CHANGED
|
@@ -398,7 +398,7 @@ class FlockFactory:
|
|
|
398
398
|
enable_rich_tables: bool = False,
|
|
399
399
|
output_theme: OutputTheme = OutputTheme.abernathy,
|
|
400
400
|
wait_for_input: bool = False,
|
|
401
|
-
temperature: float =
|
|
401
|
+
temperature: float = 1.0,
|
|
402
402
|
max_tokens: int = 8192,
|
|
403
403
|
max_tool_calls: int = 10,
|
|
404
404
|
max_retries: int = 3,
|
|
@@ -133,7 +133,7 @@ class FlockExecution:
|
|
|
133
133
|
span.set_attribute("enable_temporal", self.flock.enable_temporal)
|
|
134
134
|
|
|
135
135
|
logger.info(
|
|
136
|
-
f"Initiating Flock run '{self.flock.name}'. Start Agent: '{start_agent_name}'. Temporal: {self.flock.enable_temporal}."
|
|
136
|
+
f"Initiating Flock run '{self.flock.name}'. Model: '{self.flock.model}'. Start Agent: '{start_agent_name}'. Temporal: {self.flock.enable_temporal}."
|
|
137
137
|
)
|
|
138
138
|
|
|
139
139
|
try:
|
|
@@ -41,7 +41,7 @@ class FlockInitialization:
|
|
|
41
41
|
|
|
42
42
|
# Initialize console if needed for banner
|
|
43
43
|
if self.flock.show_flock_banner:
|
|
44
|
-
init_console(clear_screen=True, show_banner=self.flock.show_flock_banner)
|
|
44
|
+
init_console(clear_screen=True, show_banner=self.flock.show_flock_banner, model=self.flock.model)
|
|
45
45
|
|
|
46
46
|
# Set Temporal debug environment variable
|
|
47
47
|
self._set_temporal_debug_flag()
|
flock/core/util/cli_helper.py
CHANGED
|
@@ -38,7 +38,7 @@ def display_hummingbird():
|
|
|
38
38
|
""")
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
def init_console(clear_screen: bool = True, show_banner: bool = True):
|
|
41
|
+
def init_console(clear_screen: bool = True, show_banner: bool = True, model: str = ""):
|
|
42
42
|
"""Display the Flock banner."""
|
|
43
43
|
from rich.console import Console
|
|
44
44
|
from rich.syntax import Text
|
|
@@ -66,6 +66,9 @@ def init_console(clear_screen: bool = True, show_banner: bool = True):
|
|
|
66
66
|
"[italic]'Magpie'[/] milestone - [bold]white duck GmbH[/] - [cyan]https://whiteduck.de[/]\n"
|
|
67
67
|
)
|
|
68
68
|
|
|
69
|
+
if model:
|
|
70
|
+
console.print(f"[italic]Global Model:[/] {model}")
|
|
71
|
+
|
|
69
72
|
|
|
70
73
|
def display_banner_no_version():
|
|
71
74
|
"""Display the Flock banner."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flock-core
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.0b13
|
|
4
4
|
Summary: Declarative LLM Orchestration at Scale
|
|
5
5
|
Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -19,7 +19,7 @@ Requires-Dist: devtools>=0.12.2
|
|
|
19
19
|
Requires-Dist: dspy==2.6.23
|
|
20
20
|
Requires-Dist: fastapi>=0.115.8
|
|
21
21
|
Requires-Dist: httpx>=0.28.1
|
|
22
|
-
Requires-Dist: litellm==
|
|
22
|
+
Requires-Dist: litellm[proxy]==v1.75.3
|
|
23
23
|
Requires-Dist: loguru>=0.7.3
|
|
24
24
|
Requires-Dist: markdown2>=2.5.3
|
|
25
25
|
Requires-Dist: mcp>=1.7.1
|
|
@@ -44,7 +44,7 @@ Requires-Dist: python-decouple>=3.8
|
|
|
44
44
|
Requires-Dist: python-dotenv>=1.0.1
|
|
45
45
|
Requires-Dist: pyyaml>=6.0
|
|
46
46
|
Requires-Dist: questionary>=2.1.0
|
|
47
|
-
Requires-Dist: rich>=13.
|
|
47
|
+
Requires-Dist: rich>=13.7.0
|
|
48
48
|
Requires-Dist: rouge-score>=0.1.2
|
|
49
49
|
Requires-Dist: sentence-transformers>=3.4.1
|
|
50
50
|
Requires-Dist: temporalio>=1.9.0
|
|
@@ -52,9 +52,9 @@ Requires-Dist: thefuzz>=0.22.1
|
|
|
52
52
|
Requires-Dist: tiktoken>=0.8.0
|
|
53
53
|
Requires-Dist: toml>=0.10.2
|
|
54
54
|
Requires-Dist: tqdm>=4.60.1
|
|
55
|
-
Requires-Dist: uvicorn>=0.
|
|
55
|
+
Requires-Dist: uvicorn>=0.29.0
|
|
56
56
|
Requires-Dist: wd-di>=0.2.14
|
|
57
|
-
Requires-Dist: websockets>=
|
|
57
|
+
Requires-Dist: websockets>=13.0.1
|
|
58
58
|
Requires-Dist: werkzeug>=3.1.3
|
|
59
59
|
Requires-Dist: xlsxwriter>=3.2.3
|
|
60
60
|
Provides-Extra: memory
|
|
@@ -27,7 +27,7 @@ flock/cli/yaml_editor.py,sha256=K3N0bh61G1TSDAZDnurqW9e_-hO6CtSQKXQqlDhCjVo,1252
|
|
|
27
27
|
flock/cli/assets/release_notes.md,sha256=bqnk50jxM3w5uY44Dc7MkdT8XmRREFxrVBAG9XCOSSU,4896
|
|
28
28
|
flock/components/__init__.py,sha256=qDcaP0O7_b5RlUEXluqwskpKCkhM73kSMeNXReze63M,963
|
|
29
29
|
flock/components/evaluation/__init__.py,sha256=_M3UlRFeNN90fEny6byt5VdLDE5o5khbd0EPT0o9S9k,303
|
|
30
|
-
flock/components/evaluation/declarative_evaluation_component.py,sha256=
|
|
30
|
+
flock/components/evaluation/declarative_evaluation_component.py,sha256=xy0nzoawXm1HFVTNW0PSVUeUlt-nXxzA5gLexf7jgsE,8899
|
|
31
31
|
flock/components/routing/__init__.py,sha256=BH_pFm9T6bUuf8HH4byDJ0dO0fzEVHv9m-ghUdDVdm0,542
|
|
32
32
|
flock/components/routing/conditional_routing_component.py,sha256=WqZLMz-0Dhfb97xvttNrJCIVe6FNMLEQ2m4KQTDpIbI,21374
|
|
33
33
|
flock/components/routing/default_routing_component.py,sha256=ZHt2Kjf-GHB5n7evU5NSGeQJ1Wuims5soeMswqaUb1E,3370
|
|
@@ -35,11 +35,11 @@ flock/components/routing/llm_routing_component.py,sha256=SAaOFjlnhnenM6QEBn3WIpj
|
|
|
35
35
|
flock/components/utility/__init__.py,sha256=JRj932upddjzZMWs1avOupEFr_GZNu21ac66Rhw_XgY,532
|
|
36
36
|
flock/components/utility/memory_utility_component.py,sha256=4Vpt6_McEPpN5lNTcXmj7JeZTBOT6rHI0uQE2Qy-3Gc,20103
|
|
37
37
|
flock/components/utility/metrics_utility_component.py,sha256=u3Bys0dP7FmTeyZOi4XdMhZHCRYc5miXXJ690-qS1Us,24440
|
|
38
|
-
flock/components/utility/output_utility_component.py,sha256=
|
|
38
|
+
flock/components/utility/output_utility_component.py,sha256=c4K_PL3bGqdyy_v6dnOrmTqV-MkWKAB2w0HS8kzg82k,7613
|
|
39
39
|
flock/core/__init__.py,sha256=ntCQ_wlgvRVNFph3drbFvyaqgtN30487V18YoJzcIFE,1332
|
|
40
40
|
flock/core/flock.py,sha256=dN-asYsN2QOolZtYM5U8bRWEWkGckKRyhyy2n1xQ9b8,23148
|
|
41
41
|
flock/core/flock_agent.py,sha256=5n4Khlyc-xRaV65JFnCavNXeUCXMuL3PNS9T1tsTl7U,12023
|
|
42
|
-
flock/core/flock_factory.py,sha256
|
|
42
|
+
flock/core/flock_factory.py,sha256=-a4buSge2cdp1FwTjer283wbamSEyLeUQs_-MeM-S2Y,20049
|
|
43
43
|
flock/core/flock_scheduler.py,sha256=ng_s7gyijmc-AmYvBn5rtg61CSUZiIkXPRSlA1xO6VQ,8766
|
|
44
44
|
flock/core/flock_server_manager.py,sha256=tM_nOs37vAbEvxmhwy_DL2JPvgFViWroNxrRSu5MfUQ,4523
|
|
45
45
|
flock/core/agent/__init__.py,sha256=l32KFMJnC_gidMXpAXK8-OX228bWOhNc8OY_NzXm59Q,515
|
|
@@ -103,8 +103,8 @@ flock/core/mixin/prompt_parser.py,sha256=eOqI-FK3y17gVqpc_y5GF-WmK1Jv8mFlkZxTcgw
|
|
|
103
103
|
flock/core/orchestration/__init__.py,sha256=lu6VgCpza0c34lDVhTdtFBY9gCuXx-sdadGqxLlfHuQ,543
|
|
104
104
|
flock/core/orchestration/flock_batch_processor.py,sha256=2vqSOHd-Zk871UTai3jGXvITgcwSowaCNjvDkSWbkLg,3357
|
|
105
105
|
flock/core/orchestration/flock_evaluator.py,sha256=_Ctub0P5VOnePpaPQgb7Qw-gvJerns8uO8u2QVOyGYA,4082
|
|
106
|
-
flock/core/orchestration/flock_execution.py,sha256=
|
|
107
|
-
flock/core/orchestration/flock_initialization.py,sha256=
|
|
106
|
+
flock/core/orchestration/flock_execution.py,sha256=NNzihOCdHfSp1XWQa_yMKbrO4ah58Sk2c7TQviakdYg,11416
|
|
107
|
+
flock/core/orchestration/flock_initialization.py,sha256=7tz2eDuQXcFET5Q6tb5moDIzvW-AMu3jdpA-LjyhCT4,4578
|
|
108
108
|
flock/core/orchestration/flock_server_manager.py,sha256=idDds7QGsqneY21Y5oL9NHN7fz13FlPF4W1C5HsNhZE,2568
|
|
109
109
|
flock/core/orchestration/flock_web_server.py,sha256=uLTKW2pLf4vW3MqhrA2bl3K69zHRqRqcx6vkFZHRi70,3827
|
|
110
110
|
flock/core/registry/__init__.py,sha256=CWKLV1-lnIM1mQXbmZgyzbSFM177FDGeQDexfI5GDus,1324
|
|
@@ -124,7 +124,7 @@ flock/core/serialization/json_encoder.py,sha256=gAKj2zU_8wQiNvdkby2hksSA4fbPNwTj
|
|
|
124
124
|
flock/core/serialization/secure_serializer.py,sha256=n5-zRvvXddgJv1FFHsaQ2wuYdL3WUSGPvG_LGaffEJo,6144
|
|
125
125
|
flock/core/serialization/serializable.py,sha256=qlv8TsTqRuklXiNuCMrvro5VKz764xC2i3FlgLJSkdk,12129
|
|
126
126
|
flock/core/serialization/serialization_utils.py,sha256=_TvGJw5zLP-asJxtAGJ65nqWNlLSEzeCSe2N-4JAST8,15283
|
|
127
|
-
flock/core/util/cli_helper.py,sha256=
|
|
127
|
+
flock/core/util/cli_helper.py,sha256=w8N7UJZOdOFhkcUSSusnL22JDlmJGgWmH0DgO--j-5c,50057
|
|
128
128
|
flock/core/util/file_path_utils.py,sha256=Odf7uU32C-x1KNighbNERSiMtkzW4h8laABIoFK7A5M,6246
|
|
129
129
|
flock/core/util/hydrator.py,sha256=qRfVTDBEwqv1-ET2D4s5NI25f-UA_tGsoAmt5jaJMDI,10693
|
|
130
130
|
flock/core/util/input_resolver.py,sha256=XNQlx0zRyAIkeVY4SSpfDnpyGQThsEwp3aj_ylv1hjo,5765
|
|
@@ -550,8 +550,8 @@ flock/workflow/agent_execution_activity.py,sha256=CzTkbjGqrPoAbldaQOS_doesosDK9m
|
|
|
550
550
|
flock/workflow/flock_workflow.py,sha256=ZhAF82ewNRY2vvDjNpXT1D9lCVQsLOSMTaZVzdcogJc,9674
|
|
551
551
|
flock/workflow/temporal_config.py,sha256=3_8O7SDEjMsSMXsWJBfnb6XTp0TFaz39uyzSlMTSF_I,3988
|
|
552
552
|
flock/workflow/temporal_setup.py,sha256=YIHnSBntzOchHfMSh8hoLeNXrz3B1UbR14YrR6soM7A,1606
|
|
553
|
-
flock_core-0.5.
|
|
554
|
-
flock_core-0.5.
|
|
555
|
-
flock_core-0.5.
|
|
556
|
-
flock_core-0.5.
|
|
557
|
-
flock_core-0.5.
|
|
553
|
+
flock_core-0.5.0b13.dist-info/METADATA,sha256=D1vEwLX4O7SCQxlSjxluRhkMVWjmdAabi-kThkQ2kos,10026
|
|
554
|
+
flock_core-0.5.0b13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
555
|
+
flock_core-0.5.0b13.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
556
|
+
flock_core-0.5.0b13.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
557
|
+
flock_core-0.5.0b13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|