01
Typed relationships
Edges preserve meaning so traversal reflects the domain, not just proximity.
Agent Primitives /Graph = Connected knowledge
Turn entities carried by messages into nodes and typed edges. Traverse the graph now, search it by meaning, or inspect what the relationships looked like earlier.
const graph = laser.graph("kg")
// link upserts nodes and the typed edge
for (const product of PRODUCTS) {
await graph.link(
CUSTOMER, "purchased", product
)
}
// a node is addressed by its content
const customer = graphNodeEntity(
"customer", "42"
)
const bought = await graph.neighbors(
customer.id, "out", "purchased", 1
)Primitive guarantees
01
Edges preserve meaning so traversal reflects the domain, not just proximity.
02
Ask what was connected at an earlier point instead of overwriting the past.
03
Build connected knowledge from the same durable history that drives the application.
Explore the system
Combine transport, prompt assembly, recall, relationships, and live views without stitching together disconnected systems.