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

20 lines (19 loc) • 930 B
/** * Tool Routes * Endpoints for tool listing, discovery, and execution */ import type { ErrorResponse, RouteGroup, ServerContext, ServerSensitiveRouteOptions } from "../../types/index.js"; /** * The 403 for an execution route on a server that authenticates nobody, or * `undefined` when the request may proceed: the server authenticates, the * operator opted out, or the routes were built without a way to tell. */ export declare function refuseUnauthenticatedExecution(ctx: ServerContext, options: ServerSensitiveRouteOptions | undefined): ErrorResponse | undefined; /** * Create tool routes * * @param options - `hasAuthentication` / `allowUnauthenticated`: whether the * execution routes answer an unauthenticated caller (see * `ServerSensitiveRouteOptions`). `createAllRoutes` supplies them. */ export declare function createToolRoutes(basePath?: string, options?: ServerSensitiveRouteOptions): RouteGroup;