@typia/interface 12.0.0-dev.20260307 → 12.0.0-dev.20260307-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -82,6 +82,10 @@ export interface ILlmFunction {
|
|
|
82
82
|
*
|
|
83
83
|
* Type validation is NOT performed — use {@link validate} after parsing.
|
|
84
84
|
*
|
|
85
|
+
* If the SDK (e.g., LangChain, Vercel AI, MCP) already parses JSON internally
|
|
86
|
+
* and provides a pre-parsed object, use `LlmJson.coerce()` from `@typia/utils`
|
|
87
|
+
* instead to apply schema-based type coercion without re-parsing.
|
|
88
|
+
*
|
|
85
89
|
* @param str Raw JSON string from LLM output
|
|
86
90
|
* @returns Parse result with data on success, or partial data with errors
|
|
87
91
|
*/
|
package/package.json
CHANGED
|
@@ -89,6 +89,10 @@ export interface ILlmFunction {
|
|
|
89
89
|
*
|
|
90
90
|
* Type validation is NOT performed — use {@link validate} after parsing.
|
|
91
91
|
*
|
|
92
|
+
* If the SDK (e.g., LangChain, Vercel AI, MCP) already parses JSON internally
|
|
93
|
+
* and provides a pre-parsed object, use `LlmJson.coerce()` from `@typia/utils`
|
|
94
|
+
* instead to apply schema-based type coercion without re-parsing.
|
|
95
|
+
*
|
|
92
96
|
* @param str Raw JSON string from LLM output
|
|
93
97
|
* @returns Parse result with data on success, or partial data with errors
|
|
94
98
|
*/
|