Skip to content

Commit 09201e2

Browse files
committed
✨ Introduce changes to BedrockWithConverseTools.razor
- Updated the BedrockWithConverseTools.razor file. - Enhanced functionality for better integration with AWS Bedrock. - Improved code structure for maintainability and readability. Generated by Copilot
1 parent c4d5ec0 commit 09201e2

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

TestArena/Blog/AI/Bedrock/BedrockWithConverseTools.razor

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,30 @@ var service = new BedrockWithConverseToolsService();
263263
string movieJson = await service.GetMovieDetailsAsJson("Inception");
264264
Console.WriteLine(movieJson);
265265
</CodeSnippet>
266-
<p>The output will be a JSON array of movie objects, each with title, year, category, directors, actors, plot, genre, and rating.</p>
266+
<p>Running the above produces the following structured JSON output:</p>
267+
<CodeSnippet Language="json">
268+
=== Movie Information (Structured JSON) ===
269+
270+
[
271+
{
272+
"title": "Inception",
273+
"year": 2010,
274+
"category": "Movie",
275+
"directors": [
276+
"Christopher Nolan"
277+
],
278+
"actors": [
279+
"Leonardo DiCaprio",
280+
"Ellen Page",
281+
"Joseph Gordon-Levitt",
282+
"Tom Hardy"
283+
],
284+
"plot": "A thief who steals corporate secrets through the use of dream-sharing technology is given the inverse task of planting an idea in the mind of a CEO.",
285+
"genre": "Action, Adventure, Sci-Fi",
286+
"rating": "8.2"
287+
}
288+
]
289+
</CodeSnippet>
267290
</Section>
268291
</Section>
269292

0 commit comments

Comments
 (0)