using BotSharp.Platform.Models; using System; using System.Collections.Generic; using System.Text; namespace BotSharp.Platform.Abstraction { /// /// Agent could be persisted in any kind of storage. /// Example: local file storage, cloud storage, relational database, key-value database or memory /// public interface IAgentStorage { /// /// Save agent instance /// /// /// bool Persist(StandardAgent agent); /// /// Get agent by id /// /// /// StandardAgent FetchById(string agentId); /// /// Get agent by name /// /// /// StandardAgent FetchByName(string agentName); /// /// Query agents /// /// List> Query(); } }