Property HasMemory
HasMemory
Gets a value indicating whether the agent has memory configured.
public bool HasMemory { get; }
Property Value
Examples
Checking for memory:
using LMKit.Model;
using LMKit.Agents;
using var model = new LM("path/to/model.gguf");
var agent = new Agent(model);
Console.WriteLine(agent.Capabilities.HasMemory); // False
using var embeddingModel = new LM("path/to/embedding-model.gguf");
agent.Capabilities.Memory = new AgentMemory(embeddingModel);
Console.WriteLine(agent.Capabilities.HasMemory); // True