Result

data class Result @JvmOverloads constructor(val id: String? = null, val tool: String, val output: String, val isError: Boolean = false) : MessagePart.Tool, MessagePart.RequestPart(source)

Represents the result of a tool call sent as a request.

Constructors

Link copied to clipboard
constructor(id: String? = null, tool: String, output: String, isError: Boolean = false)

Properties

Link copied to clipboard
open override val cacheControl: CacheControl? = null

Optional cache-control directive for the provider's prompt-caching feature.

Link copied to clipboard
val id: String?

The unique identifier of the tool result.

Link copied to clipboard

Whether this tool result represents an error. Defaults to false.

Link copied to clipboard

The output of the tool.

Link copied to clipboard
open override val tool: String

The name of the tool that provided the result.