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
conceptIdstring-
Existing concept ID.
mutateFunc<IDictionary<string, object?>, string?>-
Edits the metadata in place and returns null to save, or a message to return without saving.
ctCancellationToken-
Cancels the wait for the store gate.