taskforce-aiagent
Version:
TaskForce is a modular, open-source, production-ready TypeScript agent framework for orchestrating AI agents, LLM-powered autonomous agents, task pipelines, dynamic toolchains, RAG workflows and memory/retrieval systems.
21 lines (20 loc) • 600 B
TypeScript
import { MemoryScope } from "../../configs/enum.js";
export interface VectorMemoryRecord {
taskId: string;
input: string;
output: string;
metadata?: Record<string, any>;
timestamp?: number;
summary?: string;
}
export interface VectorMemoryProvider {
storeMemory(record: VectorMemoryRecord): Promise<void>;
loadRelevantMemory(query: string, limit?: number, filter?: {
agent?: string;
taskId?: string;
}): Promise<VectorMemoryRecord[]>;
clearMemory?(filter?: {
taskId?: string;
}): Promise<void>;
getMemoryScope(): MemoryScope;
}