ToolInputSchema

sealed class ToolInputSchema

The input schema for the tool. For more information, see Use a tool to complete an Amazon Bedrock model response.

Inheritors

Types

Link copied to clipboard
data class Json(val value: <Error class: unknown class>) : ToolInputSchema

A JSON object defining the input schema for the tool.

Link copied to clipboard

Functions

Link copied to clipboard
fun asJson(): <Error class: unknown class>

Casts this ToolInputSchema as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Throws an exception if the ToolInputSchema is not a Json.

Link copied to clipboard
fun asJsonOrNull(): <Error class: unknown class>?

Casts this ToolInputSchema as a Json and retrieves its aws.smithy.kotlin.runtime.content.Document value. Returns null if the ToolInputSchema is not a Json.