Table of Contents

Method RemoveDataSource

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

RemoveDataSource(DataSource)

Removes a specified data source from the agent memory.

public bool RemoveDataSource(DataSource dataSource)

Parameters

dataSource DataSource

The DataSource to be removed.

Returns

bool

true if the data source was successfully removed; otherwise, false.

Exceptions

ArgumentNullException

Thrown if dataSource is null.

RemoveDataSource(string)

Removes a data source from the agent memory using its unique identifier.

public bool RemoveDataSource(string dataSourceIdentifier)

Parameters

dataSourceIdentifier string

The unique identifier of the DataSource to be removed.

Returns

bool

true if a data source matching the identifier was successfully removed; otherwise, false.

Exceptions

ArgumentNullException

Thrown if dataSourceIdentifier is null, empty, or consists only of white-space characters.