Method SaveInformation
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
dataSourceIdentifierstringThe data source identifier (without the user prefix).
textstringThe text content to store.
sectionIdentifierstringA unique identifier for this piece of information.
memoryTypeMemoryTypeThe type of memory classification.
additionalMetadataMetadataCollectionOptional metadata to associate with the information.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- DataSource
The DataSource containing the stored information.