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

19 lines (18 loc) • 988 B
import type { GenerationOperation } from "../types/index.js"; /** * @description Names a model-call observation after the public API the caller used. * @param operation {GenerationOperation | undefined} - Explicit operation; inferred from the active span's ancestry when unset. * @returns {string} `generate` or `stream`; `generate` when the operation cannot be inferred. */ export declare function generationName(operation?: GenerationOperation): string; /** * @description Names a tool observation after the tool, as the model sees it. * @param toolName {string} - Tool name. * @returns {string} The observation name, which is the bare tool name. */ export declare function toolSpanName(toolName: string): string; /** * @description Names one agentic loop step. The one-based index travels as `step_index` metadata so every step of every run aggregates under the same name. * @returns {string} The observation name, `step`. */ export declare function stepSpanName(): string;