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 and Rust
Primitives
Eight, all over one log
Bridges
A2A, MCP and AG-UI
laserdata.cloud · Context
LaserData Console: the assembled context of a session with its provenance

Swipe to see the whole screen

Inspect the context sent to a model, its assembly policy and each fragment’s source message.

The outcome

Build on one coherent API instead of bespoke plumbing.

Eight primitives

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

Three languages

Python, TypeScript and Rust 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.

In code

One sample per primitive. Three languages.

Apache 2.0, on PyPI, npm and crates.io. Every sample here is taken from the SDK's own examples.

python
python -m pip install laser-sdk
typescript
npm install @laserdata/laser-sdk
rust
cargo add laser-sdk

Publish typed messages to a topic and read them back.

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

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.