Skip to main content

getKnowledge

plugin.memory.getKnowledge(key: string): Promise<MemoryGetResponse>

Retrieves a value from the in-memory database by key.

Parameters

ParameterTypeRequiredDescription
keystringYesThe key of the value to retrieve.

Returns

Promise<MemoryGetResponse> — A promise that resolves with the response from the memory get event.

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.memory.getKnowledge('key');
console.log(result);