Laser SDK

One SDK for the data your agents and services depend on

Agent teams usually wire a queue, a cache, a vector store and a state database together, then write the code that keeps them consistent. The Laser SDK gives you typed primitives for log, context, memory, state, graph, views, changes and coordination, all backed by the same durable history.

Languages
Python, TypeScript, Rust and Go
Primitives
Eight, all over one log
Bridges
A2A, MCP and AG-UI

In your editor

Write a whole program, run it and read the result.

Both programs come from the SDK's own examples and are complete as shown. Each needs only the package and a connection string, and runs unchanged on Apache Iggy, Laser Stack and LaserData Cloud.

Workflow in Python

Two decorators turn three plain functions into the steps of a workflow that is journaled and can be resumed. The run prints its status, the steps it completed and the report.

workflow.py · Python

The program workflow.py, written in Python, and the output of python workflow.py.

# python -m pip install laser-sdk# Needs only LASER_CONNECTION_STRING. No server to start when it is set.import jsonimport time import laser_sdk as ls @ls.stepdef ingest(): return "frames from sat-7" @ls.stepdef analyze(frames): time.sleep(1) return f"analyzed {frames}" @ls.stepdef report(analysis): return f"report on {analysis}" @ls.workflowdef pipeline(): return report(analyze(ingest())) run = pipeline.run()print(json.dumps({"status": run.status, "steps": run.completed_steps, "report": run.value}))
Terminal
python workflow.py{"status": "completed", "steps": ["ingest", "analyze", "report"], "report": "report on analyzed frames from sat-7"}

The outcome

Build on one coherent API instead of bespoke plumbing.

Eight primitives

Log, context, memory, state, graph, views, changes and fabric.

Four languages

Python, TypeScript, Rust and Go from the same model.

Declared policies

Context windows and retention are explicit, reviewable code.

Open bridges

A2A, MCP and AG-UI bridges connect outside clients to agents on the log.

Laser SDK

Write against one SDK instead of wiring five stores together

Typed primitives in Python, TypeScript, Rust and Go. They all read and write the same durable log. The SDK never calls a model, so it sits next to the framework you already use.

@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)

Publish typed messages to a topic and read them back.

Runs on Apache Iggy, LaserData Cloud and Laser Stack

About Events

How it works

Architecture

Source of truth

session / node-4 remediationlive
  • 0010session.started
  • 0011tool.call
  • 0012tool.result
  • 0013model.request
  • 0014context.assembled

Derived views

Context

Prompt-ready conversational history.

Memory

Durable recall across interactions.

State

Working state and coordination.

Graph

Relationships across entities and events.

Views

Materialized projections from history.

Changes

React to updates without blind polling.

Fabric

Durable agent-to-agent coordination.

An ordered event history is the source of truth. Context, memory, state, graph, views, changes and agent coordination are derived from it.

Evaluate it in your environment.

Architecture, workload and deployment constraints determine the right next step. We review them with you before recommending a path.