ToolSchema

sealed class ToolSchema

A tool schema for a gateway target. This structure defines the schema for a tool that the target exposes through the Model Context Protocol.

Inheritors

Types

Link copied to clipboard
data class InlinePayload(val value: List<ToolDefinition>) : ToolSchema

The inline payload of the tool schema. This payload contains the schema definition directly in the request.

Link copied to clipboard
data class S3(val value: S3Configuration) : ToolSchema

The Amazon S3 location of the tool schema. This location contains the schema definition file.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this ToolSchema as a InlinePayload and retrieves its kotlin.collections.List value. Throws an exception if the ToolSchema is not a InlinePayload.

Link copied to clipboard

Casts this ToolSchema as a InlinePayload and retrieves its kotlin.collections.List value. Returns null if the ToolSchema is not a InlinePayload.

Link copied to clipboard

Casts this ToolSchema as a S3 and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.S3Configuration value. Throws an exception if the ToolSchema is not a S3.

Link copied to clipboard

Casts this ToolSchema as a S3 and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.S3Configuration value. Returns null if the ToolSchema is not a S3.