@leash/integration-memory
v0.1.0
Published
Typed Memory integration for Leash
Downloads
18
Readme
@leash/integration-memory
Typed Memory integration for Leash — auto-generated by
leash-codegen.
Installation
npm install @leash/integration-memoryRequires @leash/sdk >= 0.2.0 as a peer dependency.
Usage
import { LeashIntegrations } from '@leash/sdk/integrations'
import { createMemoryClient } from '@leash/integration-memory'
const leash = new LeashIntegrations({ apiKey: process.env.LEASH_API_KEY! })
const memory = createMemoryClient(leash)
// Example: call createEntities
const result = await memory.createEntities({ entities: [] })Available Methods
createEntities(params)— Create multiple new entities in the knowledge graphcreateRelations(params)— Create multiple new relations between entities in the knowledge graph. Relati...addObservations(params)— Add new observations to existing entities in the knowledge graphdeleteEntities(params)— Delete multiple entities and their associated relations from the knowledge graphdeleteObservations(params)— Delete specific observations from entities in the knowledge graphdeleteRelations(params)— Delete multiple relations from the knowledge graphreadGraph(params)— Read the entire knowledge graphsearchNodes(params)— Search for nodes in the knowledge graph based on a queryopenNodes(params)— Open specific nodes in the knowledge graph by their names
License
Apache-2.0
