UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

17 lines (16 loc) • 1.15 kB
import type { ConversationMemoryManager } from "../core/conversationMemoryManager.js"; import type { RedisConversationMemoryManager } from "../core/redisConversationMemoryManager.js"; import type { ArtifactStore, Tool } from "../types/index.js"; /** * Factory function that creates memory retrieval tools bound to a memory manager. * * @param memoryManager Conversation memory manager instance. Session history * retrieval requires the Redis-backed manager; with the * in-memory manager the tool returns a descriptive error. * @param artifactStore Optional artifact store for externalized MCP outputs. * When provided, retrieve_context gains an `artifactId` * parameter that fetches the full payload written by * McpOutputNormalizer under strategy="externalize". * @returns Record of tool name to Vercel AI SDK tool definition */ export declare function createMemoryRetrievalTools(memoryManager: ConversationMemoryManager | RedisConversationMemoryManager | undefined, artifactStore?: ArtifactStore): Record<string, Tool>;