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

16 lines (15 loc) • 722 B
/** * Attachment ingestion policy — the SDK-level counterpart of the server's * default-deny path roots and SSRF guard. * * Every loader that turns a caller-supplied string into bytes (image URLs and * paths in `input.images`, entries of `input.files`, `rag.files`, * `transcribe({ audio })`, Director Mode segment images, `WebLoader`) reads * its limits from one {@link AttachmentPolicy}. The policy is resolved once * per `NeuroLink` instance from {@link AttachmentsConfig} and the * `NEUROLINK_ATTACHMENT_*` environment variables, then stamped onto each * call's options so the loaders several hops down see the same answer. * * Runtime helpers live in `src/lib/utils/attachmentPolicy.ts`. */ export {};