Result
data class Result(val id: String?, val tool: String, val parts: List<ContentPart.Text>, val metaInfo: RequestMetaInfo, val isError: Boolean = false, val cacheControl: CacheControl? = null) : Message.Tool, Message.Request(source)
Represents the result of a tool call sent as a request.
Constructors
Link copied to clipboard
constructor(id: String?, tool: String, parts: List<ContentPart.Text>, metaInfo: RequestMetaInfo, isError: Boolean = false, cacheControl: CacheControl? = null)
constructor(id: String?, tool: String, part: ContentPart.Text, metaInfo: RequestMetaInfo, isError: Boolean = false, cacheControl: CacheControl? = null)
Single content part tool result message constructor
constructor(id: String?, tool: String, content: String, metaInfo: RequestMetaInfo, isError: Boolean = false, cacheControl: CacheControl? = null)
Text content tool result message constructor
Properties
Link copied to clipboard
The cache strategy for this message.
Link copied to clipboard
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Link copied to clipboard
Metadata associated with the request, including timestamp information. Defaults to a new RequestMetaInfo.
Link copied to clipboard
The parts of the tool result. Only the ContentPart.Text part is allowed.
Link copied to clipboard
The role associated with the message.