Skip to content

Commit b8875ca

Browse files
committed
chore: add metadata ref to code snippet
1 parent d93e928 commit b8875ca

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.doc_gen/metadata/bedrock-runtime_metadata.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,14 @@ bedrock-runtime_InvokeModel_TitanText:
590590
- description: Use the Invoke Model API to send a text message.
591591
snippet_tags:
592592
- bedrock-runtime.java2.InvokeModel_AmazonTitanText
593+
Kotlin:
594+
versions:
595+
- sdk_version: 1
596+
github: kotlin/services/bedrock-runtime
597+
excerpts:
598+
- description: Use the Invoke Model API to generate a short story.
599+
snippet_tags:
600+
- bedrock-runtime.kotlin.InvokeModel_AmazonTitanText
593601
.NET:
594602
versions:
595603
- sdk_version: 3

kotlin/services/bedrock-runtime/src/main/kotlin/com/example/bedrockruntime/InvokeModel.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33

44
package com.example.bedrockruntime
55

6-
// snippet-start:[bedrock.kotlin.invoke_model.import]
6+
// snippet-start:[bedrock-runtime.kotlin.InvokeModel_AmazonTitanText]
77
import aws.sdk.kotlin.services.bedrockruntime.BedrockRuntimeClient
88
import aws.sdk.kotlin.services.bedrockruntime.model.InvokeModelRequest
99
import kotlinx.serialization.Serializable
1010
import kotlinx.serialization.json.Json
11-
// snippet-end:[bedrock.kotlin.invoke_model.import]
1211

13-
// snippet-start:[bedrock.kotlin.invoke_model.main]
1412
/**
1513
* Before running this Kotlin code example, set up your development environment, including your credentials.
1614
*
@@ -66,4 +64,4 @@ private data class BedrockResponse(val results: List<Result>)
6664

6765
@Serializable
6866
private data class Result(val outputText: String)
69-
// snippet-end:[bedrock.kotlin.invoke_model.main]
67+
// snippet-end:[bedrock-runtime.kotlin.InvokeModel_AmazonTitanText]

0 commit comments

Comments
 (0)