Agent primitivesLog

Durable streams start with an ordered message.

Publish typed messages to an ordered log that survives process restarts. Consumers can follow live, resume from an offset, or replay the full history.

@dataclass
class Reading:
    host: str
    cpu: int

topic = laser.stream("fleet").topic("readings")
await topic.ensure(partitions=4)

readings = topic.json(Reading)
await readings.publish(Reading(host="node-7", cpu=82)).send()

# read the messages back as typed values
reader = readings.records("dashboard")
while (record := await reader.next()) is not None:
    print(record.value.host, record.value.cpu)

Durable transport

A durable foundation. Not another integration.

Ordered by design

Partitions preserve the sequence that makes agent decisions explainable.

Replay from any offset

Rebuild state, investigate failures, or run a new consumer over existing history.

Independent consumers

Services and agents move at their own pace without duplicating the source of truth.

Built forAgent coordinationAudit trailsEvent-driven services

Eight primitives. One durable history.

Combine transport, prompt assembly, recall, relationships and live views without stitching together disconnected systems.

Try every primitive on your laptop. Then run it in production.

Laser Stack runs the whole stack locally in Docker. LaserData Cloud runs it for you.