Skip to content

gorango/ai-tool-retriever

Repository files navigation

AI Tool Retriever

NPM Version Codecov

This project provides a lightweight, extensible library for dynamically selecting the most relevant tools for your AI agent based on user queries.

Installation

npm install ai-tool-retriever

Usage

const retriever = await ToolRetriever.create({
	tools: allMyTools,
	embeddingProvider: anyEmbeddingProvider,
	store: inMemoryOrPersistentStore,
})

const relevantTools = await retriever.retrieve(userPrompt)

About

This repo contains the following packages:

About

Auto tool retrieval for the Vercel AI SDK

Topics

Resources

License

Stars

Watchers

Forks