diff --git a/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java b/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java index a35f48bcd..09a198502 100644 --- a/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java +++ b/spring-ai-core/src/main/java/org/springframework/ai/parser/BeanOutputParser.java @@ -51,10 +51,8 @@ public class BeanOutputParser implements OutputParser { String raw = """ Your response should be in JSON format. Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation. - Here is the JSON Schema instance your output must adhere to in the enclosed markdown codeblock: - ```json - {jsonSchema} - ``` + Here is the JSON Schema instance your output must adhere to: + ```{jsonSchema}``` """; PromptTemplate promptTemplate = new PromptTemplate(raw); return promptTemplate.render(Map.of("jsonSchema", this.jsonSchema));