Result

class Result(val promptMessageContents: List<PromptMessageContent>) : ToolResult(source)

Result of an MCP tool call.

This class wraps a list of PromptMessageContent objects returned by an MCP tool. It implements the ToolResult interface to make it compatible with the agent framework.

Constructors

Link copied to clipboard
constructor(promptMessageContents: List<PromptMessageContent>)

Properties

Link copied to clipboard
val promptMessageContents: List<PromptMessageContent>

The list of content items returned by the MCP tool.

Functions

Link copied to clipboard
open override fun toStringDefault(): String

Converts the result to a string representation.