Files
nexus/backend/Services/IMemoryService.cs
T
AzuTear f5552218bc
CI - Build & Test / Backend (.NET) (push) Successful in 42s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 2m46s
CI - Build & Test / Security Check (push) Successful in 3s
CI - Build & Test / Deploy Nexus (push) Successful in 56s
feat: ship agent-first mission control v0.2.57
2026-07-31 22:39:47 +02:00

42 lines
1.0 KiB
C#

namespace Nexus.Api.Services;
public sealed record MemoryFileInfo(
string Name,
string Path,
long Size,
DateTime ModifiedAt,
string SourceAgentId,
string WorkspacePath);
public sealed record MemoryFileContent(
string Name,
string Path,
string Content,
long Size,
DateTime ModifiedAt,
string SourceAgentId,
string WorkspacePath);
public sealed record MemorySearchResult(
string Name,
string Path,
string Excerpt,
long Size,
string SourceAgentId,
string WorkspacePath);
public interface IMemoryService
{
Task<IReadOnlyList<MemoryFileInfo>> GetAllAsync(
string agentId = "iris",
CancellationToken cancellationToken = default);
Task<IReadOnlyList<MemorySearchResult>> SearchAsync(
string query,
string agentId = "iris",
CancellationToken cancellationToken = default);
Task<MemoryFileContent?> GetFileAsync(
string name,
string agentId = "iris",
CancellationToken cancellationToken = default);
}