File size: 1,136 Bytes
20f3085
 
 
 
 
b9b5c0c
 
20f3085
b9b5c0c
 
 
 
 
20f3085
b9b5c0c
 
 
 
 
 
 
 
 
20f3085
b9b5c0c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
Purpose Agent Runtime — Event-driven execution engine for v3.0.

Provides:
  - PAEvent: canonical event schema
  - EventKind: enumerated event types  
  - Visibility: event visibility levels
  - EventBus: async pub/sub with backpressure and replay
  - RunState: typed execution state for checkpointing
  - Checkpointer: protocol for durable state persistence
  - InMemoryCheckpointer: testing
  - JSONLCheckpointer: file-based, portable
  - SQLiteCheckpointer: production, concurrent-safe
"""
from purpose_agent.runtime.events import PAEvent, EventKind, Visibility, create_event, TERMINAL_KINDS
from purpose_agent.runtime.event_bus import EventBus, parallel_merge
from purpose_agent.runtime.state import RunState, RunStatus, NodeState
from purpose_agent.runtime.checkpoint import (
    Checkpointer,
    InMemoryCheckpointer,
    JSONLCheckpointer, 
    SQLiteCheckpointer,
)

__all__ = [
    "PAEvent", "EventKind", "Visibility", "create_event", "TERMINAL_KINDS",
    "EventBus", "parallel_merge",
    "RunState", "RunStatus", "NodeState",
    "Checkpointer", "InMemoryCheckpointer", "JSONLCheckpointer", "SQLiteCheckpointer",
]