Table of Contents

Method ReadLongTermMemoryAsync

Namespace
Oscova.Agents.Memory
Assembly
Oscova.Agents.dll

ReadLongTermMemoryAsync(string, CancellationToken)

Reads the user's durable long-term memory text.

public Task<string?> ReadLongTermMemoryAsync(string userId, CancellationToken ct = default)

Parameters

userId string

The user whose memory should be read.

ct CancellationToken

A token that can cancel the read.

Returns

Task<string?>

The stored memory text, or null when no memory exists.