{"version":3,"file":"_parseLlmArguments.mjs","names":[],"sources":["../../src/internal/_parseLlmArguments.ts"],"sourcesContent":["import { IJsonParseResult, ILlmSchema } from \"@typia/interface\";\nimport { LlmJson } from \"@typia/utils\";\n\n/**\n * Parse LLM output as JSON leniently and coerce it to the parameters schema.\n *\n * Schema coercion runs only after successful parsing. Failure diagnostics and\n * partial data pass through unchanged. The result is not validated; the type\n * argument is the caller's assertion.\n *\n * @evidence contracts/common.md#principled-implementation The function delegates to the utilities' lenient JSON parser, which recovers incomplete or malformed model output and coerces double-stringified values to the types that the parameters schema declares, and types the result as the caller's `T` without validating it.\n * @evidence contracts/common.md#clear-and-simple-design A one-line adapter so the emitted code depends on one internal name and the utility package remains the owner of the parser.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts There is no second parser to drift from the utility's.\n * @evidence contracts/common.md#meaningful-documentation The doc states lenient parsing, success-only coercion, unchanged failure diagnostics and that the type argument is the caller's unchecked assertion.\n */\nexport const _parseLlmArguments = <T>(\n  input: string,\n  parameters: ILlmSchema.IParameters,\n): IJsonParseResult<T> => LlmJson.parse(input, parameters);\n"],"mappings":";;;;;;;;;;;;;;AAeA,MAAa,sBACX,OACA,eACwB,QAAQ,MAAM,OAAO,UAAU"}