@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
23 lines (22 loc) • 561 B
JavaScript
/**
* Provider-specific type definitions for NeuroLink
*/
/**
* Type guard for provider error
*/
export function isProviderError(error) {
return error instanceof Error && "provider" in error;
}
/**
* Type guard for token usage
*/
export function isTokenUsage(value) {
return (typeof value === "object" &&
value !== null &&
"input" in value &&
"output" in value &&
"total" in value &&
typeof value.input === "number" &&
typeof value.output === "number" &&
typeof value.total === "number");
}