Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
encoderecallforgetencodeVectormemoryListmemoryInspectgraphFetchlinkunlink
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKMemoryunlink

unlink

Remove a memory-to-memory edge. Removing one that is not there is a success, not an error.

PURPOSE

Remove an edge asserted by link or inferred by the write pipeline. Identified by the triple, not by an edge id.

DELETE/v1/linksBearer API keystable
unlink(input: UnlinkInput): Promise<UnlinkResult>
Handshake credentialstable
unlink(request: UnlinkRequest): Promise<UnlinkResponse>

Parameters

ParameterTypeRequired
sourcestring (wire: 64-bit integer)required

The memory the edge leaves.

targetstring (wire: 64-bit integer)required

The memory it points at.

kindEdgeKindrequired

Which edge kind to remove. The triple is the identity — there is no edge id.

Returns

FieldTypePresence
source / target / kind—always

Echoed back.

removedbooleanalways

false when there was no such edge. Not an error — which is what makes unlink safe to retry and safe to call speculatively.

See also
linkgraphFetch

Was this page helpful?

link

Assert a typed memory-to-memory edge, alongside the ones the write pipeline infers.

createSpace

Provision the caller's space. Idempotent — the created flag says whether this call made it.

On this page

ParametersReturns
Suggest an editOpen in Playground