Skip to content

Commit d699982

Browse files
amasottiscmacdon
authored andcommitted
chore: add metadata ref to code snippet
1 parent ed6b5b5 commit d699982

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
@@ -641,6 +641,14 @@ bedrock-runtime_InvokeModel_TitanText:
641641
- description: Use the Invoke Model API to send a text message.
642642
snippet_tags:
643643
- bedrock-runtime.java2.InvokeModel_AmazonTitanText
644+
Kotlin:
645+
versions:
646+
- sdk_version: 1
647+
github: kotlin/services/bedrock-runtime
648+
excerpts:
649+
- description: Use the Invoke Model API to generate a short story.
650+
snippet_tags:
651+
- bedrock-runtime.kotlin.InvokeModel_AmazonTitanText
644652
.NET:
645653
versions:
646654
- 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)