Skip to content

AxMemory

Class: AxMemory

Implements

Constructors

new AxMemory()

new AxMemory(limit): AxMemory

Parameters

limit: number = 50

Returns

AxMemory

Defined in

src/ax/mem/memory.ts:10

Methods

add()

add(value, sessionId?): void

Parameters

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

sessionId?: string

Returns

void

Implementation of

AxAIMemory.add

Defined in

src/ax/mem/memory.ts:17


addResult()

addResult(__namedParameters, sessionId?): void

Parameters

__namedParameters: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Implementation of

AxAIMemory.addResult

Defined in

src/ax/mem/memory.ts:38


getLast()

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

Parameters

sessionId?: string

Returns

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

Implementation of

AxAIMemory.getLast

Defined in

src/ax/mem/memory.ts:76


history()

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

Parameters

sessionId?: string

Returns

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

Implementation of

AxAIMemory.history

Defined in

src/ax/mem/memory.ts:72


reset()

reset(sessionId?): void

Parameters

sessionId?: string

Returns

void

Implementation of

AxAIMemory.reset

Defined in

src/ax/mem/memory.ts:81


updateResult()

updateResult(__namedParameters, sessionId?): void

Parameters

__namedParameters: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Implementation of

AxAIMemory.updateResult

Defined in

src/ax/mem/memory.ts:48