flock-core 0.2.6__py3-none-any.whl → 0.2.7__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/__init__.py CHANGED
@@ -1,8 +1 @@
1
1
  """Flock package initialization."""
2
-
3
- from opentelemetry import trace
4
-
5
- from flock.config import TELEMETRY
6
-
7
- tracer = TELEMETRY.setup_tracing()
8
- tracer = trace.get_tracer(__name__)
flock/core/flock.py CHANGED
@@ -40,6 +40,7 @@ class Flock:
40
40
  output_formatter: FormatterOptions = FormatterOptions(
41
41
  PrettyPrintFormatter
42
42
  ),
43
+ show_cli_banner: bool = True,
43
44
  ):
44
45
  """Initialize the Flock orchestrator.
45
46
 
@@ -66,10 +67,10 @@ class Flock:
66
67
  session_id = get_baggage("session_id")
67
68
  if not session_id:
68
69
  session_id = str(uuid.uuid4())
69
- set_baggage("session_id", session_id)
70
- span.set_attribute("session_id", get_baggage("session_id"))
70
+ set_baggage("session_id", session_id)
71
71
 
72
- display_banner()
72
+ if show_cli_banner:
73
+ display_banner()
73
74
 
74
75
  self.agents: dict[str, FlockAgent] = {}
75
76
  self.registry = Registry()
@@ -8,18 +8,18 @@ class PrettyPrintFormatter(BaseFormatter):
8
8
  self, result: dict[str, Any], agent_name: str, **kwargs
9
9
  ) -> None:
10
10
  """Print an agent's result using Rich formatting."""
11
+ from devtools import pformat
11
12
  from rich.console import Console
13
+ from rich.panel import Panel
12
14
 
13
15
  console = Console()
14
16
 
15
- console.print(agent_name)
16
- console.print(str(result), markup=True)
17
- # try:
18
- # console.print(JSON(json.dumps(result)))
19
- # except Exception:
17
+ s = pformat(result, highlight=False)
18
+
19
+ console.print(Panel(s, title=agent_name, highlight=True))
20
20
 
21
21
  def display_data(self, data: dict[str, Any], **kwargs) -> None:
22
22
  """Print an agent's result using Rich formatting."""
23
- from devtools import pprint
23
+ from devtools import sprint
24
24
 
25
- pprint(data)
25
+ sprint(data, sprint.green)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flock-core
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: Declarative LLM Orchestration at Scale
5
5
  Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
6
6
  License-File: LICENSE
@@ -1,7 +1,7 @@
1
- flock/__init__.py,sha256=P175tsTOByIhw_CIeMAybUEggKhtoSrc8a0gKotBJfo,177
1
+ flock/__init__.py,sha256=JeRpPR29wyqXe8El-Ug4v_Ibhf5GQm_i8yWMi0cUYz0,36
2
2
  flock/config.py,sha256=jmW1PQ2oiCUpERLhNFzvrcHlYS3KM_jJyMXrnoeA0gs,1547
3
3
  flock/core/__init__.py,sha256=0Xq_txurlxxjKGXjRn6GNJusGTiBcd7zw2eF0L7JyuU,183
4
- flock/core/flock.py,sha256=0NC-J_ZCojwWDepI6rbX-9jG_Hr2AKgY43ieijhD8DU,9820
4
+ flock/core/flock.py,sha256=dyyLeCIUQ_tp-lUfbNphxwsIq8oWgEo8R2B6BhjeqTg,9826
5
5
  flock/core/flock_agent.py,sha256=prA2jslYuAABzIG6uw55f0XCNR-V4Ptaaju93ZuCc6E,27767
6
6
  flock/core/context/context.py,sha256=jH06w4C_O5CEL-YxjX_x_dmgLe9Rcllnn1Ebs0dvwaE,6171
7
7
  flock/core/context/context_manager.py,sha256=qMySVny_dbTNLh21RHK_YT0mNKIOrqJDZpi9ZVdBsxU,1103
@@ -14,7 +14,7 @@ flock/core/logging/telemetry.py,sha256=yEOfEZ3HBFeLCaHZA6QmsRdwZKtmUC6bQtEOTVeRR
14
14
  flock/core/logging/trace_and_logged.py,sha256=5vNrK1kxuPMoPJ0-QjQg-EDJL1oiEzvU6UNi6X8FiMs,2117
15
15
  flock/core/logging/formatters/base_formatter.py,sha256=CyG-X2NWq8sqEhFEO2aG7Mey5tVkIzoWiihW301_VIo,1023
16
16
  flock/core/logging/formatters/formatter_factory.py,sha256=hmH-NpCESHkioX0GBQ5CuQR4axyIXnSRWwAZCHylx6Q,1283
17
- flock/core/logging/formatters/pprint_formatter.py,sha256=cONC9hS-QFXqj9iStVpLwsoNG8asVcc8tduTRRhGQ5o,742
17
+ flock/core/logging/formatters/pprint_formatter.py,sha256=OubclvV_dSmbp0PKtdoz7UE-_x-DnBx7ykE4wowlha0,763
18
18
  flock/core/logging/formatters/rich_formatters.py,sha256=h1FD0_cIdQBQ8P2x05XhgD1cmmP80IBNVT5jb3cAV9M,4776
19
19
  flock/core/logging/formatters/theme_builder.py,sha256=1RUEwPIDfCjwTapbK1liasA5SdukOn7YwbZ4H4j1WkI,17364
20
20
  flock/core/logging/formatters/themed_formatter.py,sha256=CbxmqUC7zkLzyIxngk-3dcpQ6vxPR6zaDNA2TAMitCI,16714
@@ -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.6.dist-info/METADATA,sha256=5N_MIPv2rCJtiGwp3jYf-Bz8EWfj8h-B_mK-jPsCsT0,11569
378
- flock_core-0.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
379
- flock_core-0.2.6.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
380
- flock_core-0.2.6.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
381
- flock_core-0.2.6.dist-info/RECORD,,
377
+ flock_core-0.2.7.dist-info/METADATA,sha256=eiHVseP4SIBpnZrObTM4r89jowE6p6h2lpCpNYFq4TA,11569
378
+ flock_core-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
379
+ flock_core-0.2.7.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
380
+ flock_core-0.2.7.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
381
+ flock_core-0.2.7.dist-info/RECORD,,