@@ -136,7 +136,7 @@ String template = """
136
136
Generation generation = chatModel.call(
137
137
new PromptTemplate(this.template, Map.of("actor", this.actor, "format", this.format)).create()).getResult();
138
138
139
- ActorsFilms actorsFilms = this.beanOutputConverter.convert(this.generation.getOutput().getContent ());
139
+ ActorsFilms actorsFilms = this.beanOutputConverter.convert(this.generation.getOutput().getText ());
140
140
----
141
141
142
142
=== Property Ordering in Generated Schema
@@ -184,7 +184,7 @@ Prompt prompt = new PromptTemplate(this.template, Map.of("format", this.format))
184
184
185
185
Generation generation = chatModel.call(this.prompt).getResult();
186
186
187
- List<ActorsFilms> actorsFilms = this.outputConverter.convert(this.generation.getOutput().getContent ());
187
+ List<ActorsFilms> actorsFilms = this.outputConverter.convert(this.generation.getOutput().getText ());
188
188
----
189
189
190
190
=== Map Output Converter
@@ -217,7 +217,7 @@ Prompt prompt = new PromptTemplate(this.template,
217
217
218
218
Generation generation = chatModel.call(this.prompt).getResult();
219
219
220
- Map<String, Object> result = this.mapOutputConverter.convert(this.generation.getOutput().getContent ());
220
+ Map<String, Object> result = this.mapOutputConverter.convert(this.generation.getOutput().getText ());
221
221
----
222
222
223
223
=== List Output Converter
@@ -250,7 +250,7 @@ Prompt prompt = new PromptTemplate(this.template,
250
250
251
251
Generation generation = this.chatModel.call(this.prompt).getResult();
252
252
253
- List<String> list = this.listOutputConverter.convert(this.generation.getOutput().getContent ());
253
+ List<String> list = this.listOutputConverter.convert(this.generation.getOutput().getText ());
254
254
----
255
255
256
256
== Supported AI Models
0 commit comments