DOCS(README.md): "Reactive stream routing" #56

Open
opened 2026-06-13 00:17:22 +00:00 by brent.edwards · 0 comments
Member

Metadata

Commit Message: docs(registry): update Reactive Stream Routing
Branch: docs/reactive-stream-routing

Details

The original code is:

from cleveractors.reactive.stream_router import ReactiveStreamRouter, StreamType

router = ReactiveStreamRouter()
stream = router.create_stream({"name": "pipeline", "type": StreamType.HOT})
router.send_message("pipeline", "Process this message")

Unlike the other code, it doesn't have async. Yaaaay!

But it still doesn't work:

Traceback (most recent call last):
  File "/home/devuser/Temp/reactive.py", line 4, in <module>
    stream = router.create_stream({"name": "pipeline", "type": StreamType.HOT})
  File "/app/src/cleveractors/reactive/stream_router.py", line 163, in create_stream
    if config.name in self.streams:
       ^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'name'
## Metadata Commit Message: docs(registry): update Reactive Stream Routing Branch: docs/reactive-stream-routing ## Details The original code is: ```python from cleveractors.reactive.stream_router import ReactiveStreamRouter, StreamType router = ReactiveStreamRouter() stream = router.create_stream({"name": "pipeline", "type": StreamType.HOT}) router.send_message("pipeline", "Process this message") ``` Unlike the other code, it doesn't have `async`. Yaaaay! But it still doesn't work: ``` Traceback (most recent call last): File "/home/devuser/Temp/reactive.py", line 4, in <module> stream = router.create_stream({"name": "pipeline", "type": StreamType.HOT}) File "/app/src/cleveractors/reactive/stream_router.py", line 163, in create_stream if config.name in self.streams: ^^^^^^^^^^^ AttributeError: 'dict' object has no attribute 'name' ```
brent.edwards added this to the v2.1.0 milestone 2026-06-13 00:17:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveractors-core#56
No description provided.