@juspay/neurolink
Version:
Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio
25 lines (24 loc) • 685 B
JavaScript
/**
* Type definitions for NeuroLink tool system, including parameter schemas,
* argument patterns, execution metadata, context, and result types.
*/
/**
* 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");
}