@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
11 lines (10 loc) • 436 B
TypeScript
import type { StreamChannel } from "../types/index.js";
/**
* Create a push-based channel bridging a background producer (an agentic
* tool-calling loop) with an async-iterable consumer, enabling truly
* incremental streaming: values are yielded to the caller as they arrive
* rather than being buffered until the producer finishes.
*/
export declare function createStreamChannel<T = {
content: string;
}>(): StreamChannel<T>;