CompatibilityCallToolResult

@Serializable
class CompatibilityCallToolResult(val content: List<PromptMessageContent>, val isError: Boolean? = false, val _meta: JsonObject = EmptyJsonObject, val toolResult: JsonObject = EmptyJsonObject) : CallToolResultBase(source)

CallToolResult extended with backwards compatibility to protocol version 2024-10-07.

Constructors

Link copied to clipboard
constructor(content: List<PromptMessageContent>, isError: Boolean? = false, _meta: JsonObject = EmptyJsonObject, toolResult: JsonObject = EmptyJsonObject)

Properties

Link copied to clipboard
open override val _meta: JsonObject

The protocol reserves this result property to allow clients and servers to attach additional metadata to their responses.

Link copied to clipboard
open override val content: List<PromptMessageContent>
Link copied to clipboard
open override val isError: Boolean? = false
Link copied to clipboard
val toolResult: JsonObject