Table of Contents

Method ReadDailyLogAsync

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

ReadDailyLogAsync(string, int, CancellationToken)

Reads the user's daily log relative to the user's current local date.

public Task<(DateOnly Date, string? Content)> ReadDailyLogAsync(string userId, int daysAgo = 0, CancellationToken ct = default)

Parameters

userId string

The user whose daily log should be read.

daysAgo int

How many days before the user's current local date should be read.

ct CancellationToken

A token that can cancel the read.

Returns

Task<(DateOnly Date, string? Content)>

The local date that was read and the stored daily log text, or null when no log exists.