Skip to content

apollo-code


apollo-code / plugin-sdk/src / PluginMemoryBridge

Interface: PluginMemoryBridge

Methods

create()

create(input): Promise<PluginMemoryRecord>

Parameters

input
content

string

id?

string

pinned?

boolean

scope

PluginMemoryScope

tags?

readonly string[]

Returns

Promise<PluginMemoryRecord>


delete()

delete(scope, id): Promise<PluginMemoryRecord>

Parameters

scope

PluginMemoryScope

id

string

Returns

Promise<PluginMemoryRecord>


export()

export(scope): Promise<Readonly<Record<string, unknown>>>

Parameters

scope

PluginMemoryScope

Returns

Promise<Readonly<Record<string, unknown>>>


get()

get(scope, id): Promise<PluginMemoryRecord | null>

Parameters

scope

PluginMemoryScope

id

string

Returns

Promise<PluginMemoryRecord | null>


list()

list(scope, options?): Promise<readonly PluginMemoryRecord[]>

Parameters

scope

PluginMemoryScope

options?
limit?

number

pinned?

boolean

tags?

readonly string[]

Returns

Promise<readonly PluginMemoryRecord[]>


search(scope, query, options?): Promise<readonly Readonly<{ record: PluginMemoryRecord; score: number; }>[]>

Parameters

scope

PluginMemoryScope

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

PluginMemoryScope

id

string

patch

Readonly<{ content?: string; pinned?: boolean; tags?: readonly string[]; }>

Returns

Promise<PluginMemoryRecord>