@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
22 lines (21 loc) • 553 B
JavaScript
/**
* Dynamic Arguments Runtime Utilities
*
* Provides type guard functions for dynamic argument resolution.
* Type definitions live in src/lib/types/dynamic.ts (canonical location).
*
* @module dynamic/resolution
*/
/**
* Type guard to check if a value is a DynamicArgument function
*/
export function isDynamicFunction(value) {
return typeof value === "function";
}
/**
* Type guard to check if a function expects context
*/
export function isContextAwareFunction(fn) {
// Check function parameter count
return fn.length > 0;
}