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:7


addResult()

addResult(result, sessionId?): void

Parameters

result: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:13


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:22


history()

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

Parameters

sessionId?: string

Returns

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

Defined in

src/ax/mem/types.ts:19


reset()

reset(sessionId?): void

Parameters

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:20


updateResult()

updateResult(result, sessionId?): void

Parameters

result: Readonly<AxChatResponseResult>

sessionId?: string

Returns

void

Defined in

src/ax/mem/types.ts:14