Skip to content

Commit dae7fe2

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

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
@@ -673,6 +673,14 @@ bedrock-runtime_InvokeModel_TitanText:
673673
- description: Use the Invoke Model API to send a text message.
674674
snippet_tags:
675675
- bedrock-runtime.java2.InvokeModel_AmazonTitanText
676+
Kotlin:
677+
versions:
678+
- sdk_version: 1
679+
github: kotlin/services/bedrock-runtime
680+
excerpts:
681+
- description: Use the Invoke Model API to generate a short story.
682+
snippet_tags:
683+
- bedrock-runtime.kotlin.InvokeModel_AmazonTitanText
676684
.NET:
677685
versions:
678686
- 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)