Skip to content

AxAIMemory

Interface: AxAIMemory

Methods

add()

add(result, sessionId?): void

Parameters

result: Readonly<Readonly<object | object | object | object> | Readonly<object | object | object | object>[]>

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:4


addResult()

addResult(result, sessionId?): void

Parameters

result: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:10


getLast()

getLast(sessionId?): undefined | Readonly<object | object | object | object>

Parameters

sessionId?: string

Returns

undefined | Readonly<object | object | object | object>

Defined in

src/ax/mem/types.ts:20


history()

history(sessionId?): Readonly<object | object | object | object>[]

Parameters

sessionId?: string

Returns

Readonly<object | object | object | object>[]

Defined in

src/ax/mem/types.ts:16


peek()

peek(sessionId?): Readonly<object | object | object | object>[]

Parameters

sessionId?: string

Returns

Readonly<object | object | object | object>[]

Defined in

src/ax/mem/types.ts:17


reset()

reset(sessionId?): void

Parameters

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:18


updateResult()

updateResult(result, sessionId?): void

Parameters

result: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:11