From eecbef30fa2083e747de22424b29f77782051a30 Mon Sep 17 00:00:00 2001 From: SASIKUMAR SENTHILNATHAN Date: Wed, 21 Feb 2024 01:25:41 +0530 Subject: [PATCH] Changing String package from `java.util.String` to `java.lang.String` (#340) Changing String package from `java.util.String` to `java.lang.String` --- spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc index c8600cdf5..9a2693e7a 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/concepts.adoc @@ -130,7 +130,7 @@ The Spring AI project helps you with this task. == Output Parsing -The output of AI models traditionally arrives as a `java.util.String`, even if you ask for the reply to be in JSON. +The output of AI models traditionally arrives as a `java.lang.String`, even if you ask for the reply to be in JSON. It may be the correct JSON, but it is not a JSON data structure. It is just a string. Also, asking "`for JSON`" as part of the prompt is not 100% accurate.