@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and
26 lines (25 loc) • 670 B
JavaScript
/**
* Tool system type definitions for NeuroLink
* Replaces 'any' types in tool registration and execution
*/
import { z } from "zod";
/**
* Type guard for tool result
*/
export function isToolResult(value) {
return (typeof value === "object" &&
value !== null &&
"success" in value &&
typeof value.success === "boolean");
}
/**
* Type guard for tool definition
*/
export function isToolDefinition(value) {
return (typeof value === "object" &&
value !== null &&
"description" in value &&
"execute" in value &&
typeof value.description === "string" &&
typeof value.execute === "function");
}