UNPKG

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.

14 lines (13 loc) 484 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LangChainRetrieverAdapter = void 0; class LangChainRetrieverAdapter { constructor(langChainRetriever) { this.langChainRetriever = langChainRetriever; } async retrieve(query) { const docs = await this.langChainRetriever._getRelevantDocuments(query); return docs.map((doc) => doc.pageContent); } } exports.LangChainRetrieverAdapter = LangChainRetrieverAdapter;