HarnessToolResultBlockDelta

A delta update to a tool result content block.

Inheritors

Types

Link copied to clipboard
data class Json(val value: Document) : HarnessToolResultBlockDelta

A JSON tool result delta.

Link copied to clipboard
Link copied to clipboard
data class Text(val value: String) : HarnessToolResultBlockDelta

A text tool result delta.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asText(): String

Casts this HarnessToolResultBlockDelta as a Text and retrieves its kotlin.String value. Throws an exception if the HarnessToolResultBlockDelta is not a Text.

Link copied to clipboard

Casts this HarnessToolResultBlockDelta as a Text and retrieves its kotlin.String value. Returns null if the HarnessToolResultBlockDelta is not a Text.