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.
- {penguiflow-2.2.4/penguiflow.egg-info → penguiflow-2.2.5}/PKG-INFO +1 -1
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/quickstart/flow.py +3 -6
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/trace_cancel/flow.py +9 -8
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/__init__.py +1 -1
- {penguiflow-2.2.4 → penguiflow-2.2.5/penguiflow.egg-info}/PKG-INFO +1 -1
- {penguiflow-2.2.4 → penguiflow-2.2.5}/pyproject.toml +1 -1
- {penguiflow-2.2.4 → penguiflow-2.2.5}/LICENSE +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/README.md +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/controller_multihop/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/controller_multihop/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/fanout_join/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/fanout_join/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/map_concurrent/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/map_concurrent/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/metadata_propagation/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/mlflow_metrics/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/mlflow_metrics/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/playbook_retrieval/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/playbook_retrieval/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/quickstart/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_minimal/main.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_parallel/main.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_pause_resume/main.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/react_replan/main.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/reliability_middleware/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/reliability_middleware/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates_subflows/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/roadmap_status_updates_subflows/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_policy/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_policy/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_predicate/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_predicate/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_union/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/routing_union/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/status_roadmap_flow/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/status_roadmap_flow/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/streaming_llm/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/streaming_llm/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/testkit_demo/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/traceable_errors/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/examples/visualizer/flow.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/admin.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/bus.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/catalog.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/core.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/debug.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/errors.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/metrics.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/middlewares.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/node.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/patterns.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/prompts.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/planner/react.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/policies.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/registry.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/remote.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/state.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/streaming.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/testkit.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/types.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow/viz.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/SOURCES.txt +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/dependency_links.txt +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/entry_points.txt +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/requires.txt +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow.egg-info/top_level.txt +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow_a2a/__init__.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/penguiflow_a2a/server.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/setup.cfg +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_a2a_server.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_budgets.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_cancel.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_catalog.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_controller.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_core.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_distribution_hooks.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_errors.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_examples_roadmap.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_metadata.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_metrics.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_middlewares.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_node.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_patterns.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_planner_prompts.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_property_based.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_react_planner.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_registry.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_remote.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_routing_policy.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_streaming.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_testkit.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_types.py +0 -0
- {penguiflow-2.2.4 → penguiflow-2.2.5}/tests/test_viz.py +0 -0
|
@@ -6,7 +6,7 @@ import asyncio
|
|
|
6
6
|
|
|
7
7
|
from pydantic import BaseModel
|
|
8
8
|
|
|
9
|
-
from penguiflow import
|
|
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
|
-
|
|
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(
|
|
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:
|
|
36
|
-
if event.startswith("trace_cancel"):
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|