penguiflow 1.0.2__py3-none-any.whl → 2.0.0__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 penguiflow might be problematic. Click here for more details.

penguiflow/__init__.py CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from . import testkit
5
6
  from .core import (
6
7
  DEFAULT_QUEUE_MAXSIZE,
7
8
  Context,
@@ -10,11 +11,21 @@ from .core import (
10
11
  call_playbook,
11
12
  create,
12
13
  )
14
+ from .errors import FlowError, FlowErrorCode
15
+ from .metrics import FlowEvent
13
16
  from .middlewares import Middleware
14
17
  from .node import Node, NodePolicy
15
18
  from .patterns import join_k, map_concurrent, predicate_router, union_router
19
+ from .policies import DictRoutingPolicy, RoutingPolicy, RoutingRequest
16
20
  from .registry import ModelRegistry
17
- from .types import WM, FinalAnswer, Headers, Message, PlanStep, Thought
21
+ from .streaming import (
22
+ chunk_to_ws_json,
23
+ emit_stream_events,
24
+ format_sse_event,
25
+ stream_flow,
26
+ )
27
+ from .types import WM, FinalAnswer, Headers, Message, PlanStep, StreamChunk, Thought
28
+ from .viz import flow_to_dot, flow_to_mermaid
18
29
 
19
30
  __all__ = [
20
31
  "__version__",
@@ -26,9 +37,13 @@ __all__ = [
26
37
  "NodePolicy",
27
38
  "ModelRegistry",
28
39
  "Middleware",
40
+ "FlowEvent",
41
+ "FlowError",
42
+ "FlowErrorCode",
29
43
  "call_playbook",
30
44
  "Headers",
31
45
  "Message",
46
+ "StreamChunk",
32
47
  "PlanStep",
33
48
  "Thought",
34
49
  "WM",
@@ -37,7 +52,17 @@ __all__ = [
37
52
  "join_k",
38
53
  "predicate_router",
39
54
  "union_router",
55
+ "DictRoutingPolicy",
56
+ "RoutingPolicy",
57
+ "RoutingRequest",
58
+ "format_sse_event",
59
+ "chunk_to_ws_json",
60
+ "stream_flow",
61
+ "emit_stream_events",
62
+ "flow_to_mermaid",
63
+ "flow_to_dot",
40
64
  "create",
65
+ "testkit",
41
66
  ]
42
67
 
43
- __version__ = "1.0.2"
68
+ __version__ = "2.0.0"