apollo-code / plugin-sdk/src / PluginMemoryBridge
Interface: PluginMemoryBridge
Methods
create()
create(
input):Promise<PluginMemoryRecord>
Parameters
input
content
string
id?
string
pinned?
boolean
scope
tags?
readonly string[]
Returns
Promise<PluginMemoryRecord>
delete()
delete(
scope,id):Promise<PluginMemoryRecord>
Parameters
scope
id
string
Returns
Promise<PluginMemoryRecord>
export()
export(
scope):Promise<Readonly<Record<string,unknown>>>
Parameters
scope
Returns
Promise<Readonly<Record<string, unknown>>>
get()
get(
scope,id):Promise<PluginMemoryRecord|null>
Parameters
scope
id
string
Returns
Promise<PluginMemoryRecord | null>
list()
list(
scope,options?):Promise<readonlyPluginMemoryRecord[]>
Parameters
scope
options?
limit?
number
pinned?
boolean
tags?
readonly string[]
Returns
Promise<readonly PluginMemoryRecord[]>
search()
search(
scope,query,options?):Promise<readonlyReadonly<{record:PluginMemoryRecord;score:number; }>[]>
Parameters
scope
query
string
options?
limit?
number
tags?
readonly string[]
Returns
Promise<readonly Readonly<{ record: PluginMemoryRecord; score: number; }>[]>
update()
update(
scope,id,patch):Promise<PluginMemoryRecord>
Parameters
scope
id
string
patch
Readonly<{ content?: string; pinned?: boolean; tags?: readonly string[]; }>
Returns
Promise<PluginMemoryRecord>