@@ -136,7 +136,7 @@ String template = """
136136Generation generation = chatModel.call(
137137 new PromptTemplate(this.template, Map.of("actor", this.actor, "format", this.format)).create()).getResult();
138138
139- ActorsFilms actorsFilms = this.beanOutputConverter.convert(this.generation.getOutput().getContent ());
139+ ActorsFilms actorsFilms = this.beanOutputConverter.convert(this.generation.getOutput().getText ());
140140----
141141
142142=== Property Ordering in Generated Schema
@@ -184,7 +184,7 @@ Prompt prompt = new PromptTemplate(this.template, Map.of("format", this.format))
184184
185185Generation generation = chatModel.call(this.prompt).getResult();
186186
187- List<ActorsFilms> actorsFilms = this.outputConverter.convert(this.generation.getOutput().getContent ());
187+ List<ActorsFilms> actorsFilms = this.outputConverter.convert(this.generation.getOutput().getText ());
188188----
189189
190190=== Map Output Converter
@@ -217,7 +217,7 @@ Prompt prompt = new PromptTemplate(this.template,
217217
218218Generation generation = chatModel.call(this.prompt).getResult();
219219
220- Map<String, Object> result = this.mapOutputConverter.convert(this.generation.getOutput().getContent ());
220+ Map<String, Object> result = this.mapOutputConverter.convert(this.generation.getOutput().getText ());
221221----
222222
223223=== List Output Converter
@@ -250,7 +250,7 @@ Prompt prompt = new PromptTemplate(this.template,
250250
251251Generation generation = this.chatModel.call(this.prompt).getResult();
252252
253- List<String> list = this.listOutputConverter.convert(this.generation.getOutput().getContent ());
253+ List<String> list = this.listOutputConverter.convert(this.generation.getOutput().getText ());
254254----
255255
256256== Supported AI Models
0 commit comments