{"version":3,"file":"_coerceLlmArguments.mjs","names":[],"sources":["../../src/internal/_coerceLlmArguments.ts"],"sourcesContent":["import { ILlmSchema } from \"@typia/interface\";\nimport { LlmJson } from \"@typia/utils\";\n\n/**\n * Coerce already parsed LLM arguments to the types of the parameters schema.\n *\n * The result is not validated; the type argument is the caller's assertion.\n *\n * @evidence contracts/common.md#principled-implementation The function delegates to the utilities' schema-directed coercion, which converts double-stringified values to the types that the parameters schema declares, and casts the result to the caller's type because coercion does not validate 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 algorithm.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts There is no second coercion implementation to drift from the utility's.\n * @evidence contracts/common.md#meaningful-documentation The doc states that no validation is performed and that the type argument is the caller's assertion.\n */\nexport const _coerceLlmArguments = <T>(\n  value: unknown,\n  parameters: ILlmSchema.IParameters,\n): T => LlmJson.coerce(value, parameters);\n"],"mappings":";;;;;;;;;;;;AAaA,MAAa,uBACX,OACA,eACM,QAAQ,OAAO,OAAO,UAAU"}