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

18 lines (17 loc) • 823 B
/** * 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 */ import type { DynamicArgument, DynamicResolutionContext } from "../types/index.js"; /** * Type guard to check if a value is a DynamicArgument function */ export declare function isDynamicFunction<T>(value: DynamicArgument<T>): value is (() => T) | (() => Promise<T>) | ((context: DynamicResolutionContext) => T) | ((context: DynamicResolutionContext) => Promise<T>); /** * Type guard to check if a function expects context */ export declare function isContextAwareFunction<T>(fn: Function): fn is ((context: DynamicResolutionContext) => T) | ((context: DynamicResolutionContext) => Promise<T>);