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

13 lines (12 loc) • 763 B
/** * Parses a Codex tool call's raw argument text into the record a Claude * `tool_use.input` needs, kind-aware: a `function` tool's `arguments` is * JSON-Schema-shaped JSON text; a `custom` tool has no JSON at all — only the * raw grammar-constrained string that `mapCodexCustomToolToClaude`'s * single-field `input_schema` (`codexOutboundFallback.ts` §3.4) expects * wrapped as `{ input: raw }`. Centralized so both call sites (a * `function_call` item's `arguments` and a `custom_tool_call` item's `input`) * go through the same rule rather than two hand-rolled wrappings. */ import type { CodexNativeToolKind } from "../types/index.js"; export declare function parseToolArguments(raw: string, kind: CodexNativeToolKind): Record<string, unknown>;