You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/ai/bedrock/converse-tools/index.html
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,11 @@
20
20
<meta property="og:type" content="website" />
21
21
<meta property="og:locale" content="en_US" /> -->
22
22
23
-
<!--Blazor:{"type":"webassembly","prerenderId":"0f2559bffaf54e36aaf0d2dc2c428cd6","key":{"locationHash":"77D12F14A8105320B1AAED6AE7E689DA0EC4483270A645E84079EAA0FFDF550D:0","formattedComponentKey":""},"assembly":"Microsoft.AspNetCore.Components.Web","typeName":"Microsoft.AspNetCore.Components.Web.HeadOutlet","parameterDefinitions":"W10=","parameterValues":"W10="}--><title>AWS Bedrock with .NET: Converse API with Tools</title><metaproperty="og:url" content="http://127.0.0.1:5050/blog/ai/bedrock/converse-tools" />
23
+
<!--Blazor:{"type":"webassembly","prerenderId":"c294f9fe7e314e0d9caeb2e251192ca1","key":{"locationHash":"77D12F14A8105320B1AAED6AE7E689DA0EC4483270A645E84079EAA0FFDF550D:0","formattedComponentKey":""},"assembly":"Microsoft.AspNetCore.Components.Web","typeName":"Microsoft.AspNetCore.Components.Web.HeadOutlet","parameterDefinitions":"W10=","parameterValues":"W10="}--><title>AWS Bedrock with .NET: Converse API with Tools</title><metaproperty="og:url" content="http://127.0.0.1:5050/blog/ai/bedrock/converse-tools" />
24
24
<metaproperty="og:title" content="AWS Bedrock with .NET: Converse API with Tools" />
<divclass="col-md-4 col-xs-12 d-flex justify-content-md-end justify-content-center"><spanclass="text-muted fw-bold">Last updated: 24 Jan 2026</span></div></div></div></div></div></header>
93
93
94
-
<sectionid="6f362d3d-4319-412c-80df-995499e808ec" style="margin-bottom:1rem;"><h4>What is the Converse API with Tools?</h4><hrclass="border border-success border-1 opacity-50">
94
+
<sectionid="9469d116-6357-4d8a-bc79-112a3f98289b" style="margin-bottom:1rem;"><h4>What is the Converse API with Tools?</h4><hrclass="border border-success border-1 opacity-50">
95
95
<div><p>
96
96
AWS Bedrock's <b>Converse API</b> can be supercharged with <b>tools</b>—structured interfaces that let the model call functions, enforce output schemas, or interact with external systems. This enables developers to build AI agents that not only chat, but also return structured data, trigger workflows, or integrate with business logic.
Tools let you move beyond plain text. They enable the model to return data in a format your application can consume directly—no more brittle prompt engineering or regex parsing!
105
105
</p></div></div></div></section>
106
106
107
-
<sectionid="40e0e6a3-9203-441c-83b0-d087c091f422" style="margin-bottom:1rem;"><h4>When and Why to Use Tools with Converse API</h4><hrclass="border border-success border-1 opacity-50">
107
+
<sectionid="980db0f5-c87b-401a-9bec-da028ab1bfe5" style="margin-bottom:1rem;"><h4>When and Why to Use Tools with Converse API</h4><hrclass="border border-success border-1 opacity-50">
108
108
<div><ul><li><b>Structured Output:</b> Enforce JSON schemas for reliable, machine-readable responses.</li>
109
109
<li><b>Function Calling:</b> Let the model trigger business logic, database queries, or API calls.</li>
110
110
<li><b>Data Extraction:</b> Extract entities, summaries, or analytics from unstructured text.</li>
Use tools when you need more than just a chat—you want the AI to work as part of your system.
114
114
</p></div></section>
115
115
116
-
<sectionid="875274ef-5a76-4486-9044-e4901097be61" style="margin-bottom:1rem;"><h4>How: Building a Movie Info Extractor with Converse Tools</h4><hrclass="border border-success border-1 opacity-50">
<sectionid="ac332f6c-7f88-443e-9e30-09d7ced50eac" style="margin-bottom:1rem;"><h4>How: Building a Movie Info Extractor with Converse Tools</h4><hrclass="border border-success border-1 opacity-50">
<sectionid="c6d7b2cd-ef00-4506-b354-70b82c05220b" style="margin-bottom:1rem;"><h5>2. Service Implementation Example</h5><hrclass="border border-success border-1 opacity-50">
122
+
<sectionid="d6d9ed34-67e6-4c00-8741-e4004f969be0" style="margin-bottom:1rem;"><h5>2. Service Implementation Example</h5><hrclass="border border-success border-1 opacity-50">
123
123
<div><p>This example shows how to use a tool schema to extract structured movie information from the model. The tool enforces a JSON schema, so the model must return an array of movie objects with required fields.</p>
<divclass="callout-box special tip py-1"><divclass="py-1"><spanclass="callout-icon">💡</span>
309
309
<spanclass="callout-title">Full Example on GitHub</span></div>
310
310
<divclass="callout-message"><p>See the complete implementation and usage in the <ahref="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockWithConverseToolsService.cs" target="_blank">BedrockWithConverseToolsService.cs</a> file on GitHub.</p></div></div></div></section>
311
-
<sectionid="bb6d4b8e-3846-4772-bf8e-520e841f64e6" style="margin-bottom:1rem;"><h5>3. How the Example Works</h5><hrclass="border border-success border-1 opacity-50">
311
+
<sectionid="5e5433da-a7b2-4da9-9c85-f371be1479a7" style="margin-bottom:1rem;"><h5>3. How the Example Works</h5><hrclass="border border-success border-1 opacity-50">
312
312
<div><ul><li><b>Tool Schema:</b> Defines exactly what fields the model must return for each movie.</li>
313
313
<li><b>System Prompt:</b> Sets the AI’s persona as a movie expert.</li>
314
314
<li><b>Tool Use:</b> The model is required to use the tool and return structured data.</li>
315
315
<li><b>Extraction:</b> The code parses the tool output and returns formatted JSON.</li></ul></div></section>
316
-
<sectionid="c714ce55-0ed1-4d46-82e0-0f68186fc4d9" style="margin-bottom:1rem;"><h5>4. Example Use Case: Movie Info Extraction</h5><hrclass="border border-success border-1 opacity-50">
316
+
<sectionid="9803f068-3a64-45ed-a058-559ee5d54c8f" style="margin-bottom:1rem;"><h5>4. Example Use Case: Movie Info Extraction</h5><hrclass="border border-success border-1 opacity-50">
317
317
<div><p>Suppose a user wants to get details about "Inception". The service will return a structured JSON array with all the required fields, ready for use in your app or workflow.</p>
<p>The output will be a JSON array of movie objects, each with title, year, category, directors, actors, plot, genre, and rating.</p></div></section></div></section>
<div><ul><li><b>What:</b> Converse API with tools lets you build AI agents that return structured, reliable data—not just text.</li>
328
328
<li><b>When:</b> Use tools for data extraction, workflow automation, and any scenario where you need more than chat.</li>
329
329
<li><b>How:</b> Define tool schemas, enforce output structure, and integrate with your .NET apps using the AWS SDK.</li></ul>
330
330
<p>
331
331
For more details and the full code, see the <ahref="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockWithConverseToolsService.cs" target="_blank">GitHub example</a>.
332
332
</p></div></section>
333
333
334
-
<sectionid="cd0357f5-c744-44dd-abcc-9eda0e5f8f76" style="margin-bottom:1rem;"><h4>References & Further Reading</h4><hrclass="border border-success border-1 opacity-50">
334
+
<sectionid="808cae55-e402-45b5-855b-75062bcd97b4" style="margin-bottom:1rem;"><h4>References & Further Reading</h4><hrclass="border border-success border-1 opacity-50">
335
335
<div><ul><li><ahref="https://docs.aws.amazon.com/bedrock/latest/userguide/converse-api.html" target="_blank">AWS Bedrock Converse API Documentation</a></li>
336
336
<li><ahref="https://github.com/ajaysskumar/ai-playground/blob/main/AwsBedrockExamples/Services/BedrockWithConverseToolsService.cs" target="_blank">BedrockWithConverseToolsService.cs on GitHub</a></li></ul></div></section>
0 commit comments