penguiflow 2.2.4__tar.gz → 2.2.5__tar.gz

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 penguiflow might be problematic. Click here for more details.

Files changed (97) hide show
  1. {penguiflow-2.2.4/penguiflow.egg-info → penguiflow-2.2.5}/PKG-INFO +1 -1
  2. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/quickstart/flow.py +3 -6
  3. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/trace_cancel/flow.py +9 -8
  4. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/__init__.py +1 -1
  5. {penguiflow-2.2.4 → penguiflow-2.2.5/penguiflow.egg-info}/PKG-INFO +1 -1
  6. {penguiflow-2.2.4 → penguiflow-2.2.5}/pyproject.toml +1 -1
  7. {penguiflow-2.2.4 → penguiflow-2.2.5}/LICENSE +0 -0
  8. {penguiflow-2.2.4 → penguiflow-2.2.5}/README.md +0 -0
  9. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/__init__.py +0 -0
  10. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/controller_multihop/__init__.py +0 -0
  11. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/controller_multihop/flow.py +0 -0
  12. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/fanout_join/__init__.py +0 -0
  13. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/fanout_join/flow.py +0 -0
  14. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/map_concurrent/__init__.py +0 -0
  15. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/map_concurrent/flow.py +0 -0
  16. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/metadata_propagation/flow.py +0 -0
  17. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/mlflow_metrics/__init__.py +0 -0
  18. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/mlflow_metrics/flow.py +0 -0
  19. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/playbook_retrieval/__init__.py +0 -0
  20. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/playbook_retrieval/flow.py +0 -0
  21. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/quickstart/__init__.py +0 -0
  22. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_minimal/main.py +0 -0
  23. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_parallel/main.py +0 -0
  24. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_pause_resume/main.py +0 -0
  25. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_replan/main.py +0 -0
  26. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/reliability_middleware/__init__.py +0 -0
  27. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/reliability_middleware/flow.py +0 -0
  28. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates/__init__.py +0 -0
  29. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates/flow.py +0 -0
  30. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates_subflows/__init__.py +0 -0
  31. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates_subflows/flow.py +0 -0
  32. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_policy/__init__.py +0 -0
  33. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_policy/flow.py +0 -0
  34. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_predicate/__init__.py +0 -0
  35. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_predicate/flow.py +0 -0
  36. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_union/__init__.py +0 -0
  37. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_union/flow.py +0 -0
  38. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/status_roadmap_flow/__init__.py +0 -0
  39. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/status_roadmap_flow/flow.py +0 -0
  40. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/streaming_llm/__init__.py +0 -0
  41. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/streaming_llm/flow.py +0 -0
  42. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/testkit_demo/flow.py +0 -0
  43. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/traceable_errors/flow.py +0 -0
  44. {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/visualizer/flow.py +0 -0
  45. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/admin.py +0 -0
  46. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/bus.py +0 -0
  47. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/catalog.py +0 -0
  48. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/core.py +0 -0
  49. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/debug.py +0 -0
  50. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/errors.py +0 -0
  51. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/metrics.py +0 -0
  52. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/middlewares.py +0 -0
  53. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/node.py +0 -0
  54. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/patterns.py +0 -0
  55. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/__init__.py +0 -0
  56. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/prompts.py +0 -0
  57. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/react.py +0 -0
  58. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/policies.py +0 -0
  59. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/registry.py +0 -0
  60. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/remote.py +0 -0
  61. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/state.py +0 -0
  62. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/streaming.py +0 -0
  63. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/testkit.py +0 -0
  64. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/types.py +0 -0
  65. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/viz.py +0 -0
  66. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/SOURCES.txt +0 -0
  67. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/dependency_links.txt +0 -0
  68. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/entry_points.txt +0 -0
  69. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/requires.txt +0 -0
  70. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/top_level.txt +0 -0
  71. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow_a2a/__init__.py +0 -0
  72. {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow_a2a/server.py +0 -0
  73. {penguiflow-2.2.4 → penguiflow-2.2.5}/setup.cfg +0 -0
  74. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_a2a_server.py +0 -0
  75. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_budgets.py +0 -0
  76. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_cancel.py +0 -0
  77. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_catalog.py +0 -0
  78. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_controller.py +0 -0
  79. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_core.py +0 -0
  80. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_distribution_hooks.py +0 -0
  81. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_errors.py +0 -0
  82. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_examples_roadmap.py +0 -0
  83. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_metadata.py +0 -0
  84. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_metrics.py +0 -0
  85. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_middlewares.py +0 -0
  86. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_node.py +0 -0
  87. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_patterns.py +0 -0
  88. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_planner_prompts.py +0 -0
  89. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_property_based.py +0 -0
  90. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_react_planner.py +0 -0
  91. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_registry.py +0 -0
  92. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_remote.py +0 -0
  93. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_routing_policy.py +0 -0
  94. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_streaming.py +0 -0
  95. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_testkit.py +0 -0
  96. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_types.py +0 -0
  97. {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_viz.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: penguiflow
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: Async agent orchestration primitives.
5
5
  Author: PenguiFlow Team
6
6
  License: MIT License
@@ -6,7 +6,7 @@ import asyncio
6
6
 
7
7
  from pydantic import BaseModel
8
8
 
9
- from penguiflow import Headers, Message, ModelRegistry, Node, NodePolicy, create
9
+ from penguiflow import ModelRegistry, Node, NodePolicy, create
10
10
 
11
11
 
12
12
  class TriageIn(BaseModel):
@@ -58,12 +58,9 @@ async def main() -> None:
58
58
  )
59
59
  flow.run(registry=registry)
60
60
 
61
- message = Message(
62
- payload=TriageIn(text="show marketing metrics"),
63
- headers=Headers(tenant="acme"),
64
- )
61
+ payload = TriageIn(text="show marketing metrics")
65
62
 
66
- await flow.emit(message)
63
+ await flow.emit(payload)
67
64
  result = await flow.fetch()
68
65
  print(result.prompt)
69
66
 
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  import asyncio
4
4
  from typing import Any
5
5
 
6
- from penguiflow import Headers, Message, Node, NodePolicy, create
6
+ from penguiflow import FlowEvent, Headers, Message, Node, NodePolicy, create
7
7
 
8
8
  _started = asyncio.Event()
9
9
 
@@ -32,14 +32,15 @@ async def sink(message: Message, _ctx) -> str:
32
32
  return str(message.payload)
33
33
 
34
34
 
35
- async def _metrics_printer(event: str, payload: dict[str, object]) -> None:
36
- if event.startswith("trace_cancel"):
37
- pending = payload["trace_pending"]
38
- inflight = payload["trace_inflight"]
39
- q_in = payload["q_depth_in"]
40
- q_out = payload["q_depth_out"]
35
+ async def _metrics_printer(event: FlowEvent) -> None:
36
+ if event.event_type.startswith("trace_cancel"):
37
+ payload = event.to_payload()
38
+ pending = payload.get("trace_pending")
39
+ inflight = payload.get("trace_inflight")
40
+ q_in = payload.get("q_depth_in")
41
+ q_out = payload.get("q_depth_out")
41
42
  print(
42
- f"{event} pending={pending} inflight={inflight} "
43
+ f"{event.event_type} pending={pending} inflight={inflight} "
43
44
  f"q_in={q_in} q_out={q_out}"
44
45
  )
45
46
 
@@ -105,4 +105,4 @@ __all__ = [
105
105
  "TrajectoryStep",
106
106
  ]
107
107
 
108
- __version__ = "2.2.4"
108
+ __version__ = "2.2.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: penguiflow
3
- Version: 2.2.4
3
+ Version: 2.2.5
4
4
  Summary: Async agent orchestration primitives.
5
5
  Author: PenguiFlow Team
6
6
  License: MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "penguiflow"
7
- version = "2.2.4"
7
+ version = "2.2.5"
8
8
  description = "Async agent orchestration primitives."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes