Table of Contents

Method SaveInformation

Namespace
LMKit.Agents.Memory
Assembly
LM-Kit.NET.dll

SaveInformation(string, string, string, MemoryType, MetadataCollection, CancellationToken)

Saves text information synchronously into a user-scoped data source.

public DataSource SaveInformation(string dataSourceIdentifier, string text, string sectionIdentifier, MemoryType memoryType = MemoryType.Semantic, MetadataCollection additionalMetadata = null, CancellationToken cancellationToken = default)

Parameters

dataSourceIdentifier string

The data source identifier (without the user prefix).

text string

The text content to store.

sectionIdentifier string

A unique identifier for this piece of information.

memoryType MemoryType

The type of memory classification.

additionalMetadata MetadataCollection

Optional metadata to associate with the information.

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

DataSource

The DataSource containing the stored information.