Table of Contents

Method UpdateAsync

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

UpdateAsync(string, Func<IDictionary<string, object?>, string?>, CancellationToken)

Changes an existing concept's metadata under the store gate, keeping its body and never creating it.

public Task<string> UpdateAsync(string conceptId, Func<IDictionary<string, object?>, string?> mutate, CancellationToken ct = default)

Parameters

conceptId string

Existing concept ID.

mutate Func<IDictionary<string, object?>, string?>

Edits the metadata in place and returns null to save, or a message to return without saving.

ct CancellationToken

Cancels the wait for the store gate.

Returns

Task<string>