ToolResultBlockDelta

Contains incremental updates to tool results information during streaming responses. This allows clients to build up tool results data progressively as the response is generated.

Inheritors

Types

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

The reasoning the model used to return the output.

Functions

Link copied to clipboard
fun asText(): String

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

Link copied to clipboard

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