RegisteredTool

data class RegisteredTool(val tool: Tool, val handler: suspend (CallToolRequest) -> CallToolResult)(source)

A wrapper class representing a registered tool on the server.

Constructors

Link copied to clipboard
constructor(tool: Tool, handler: suspend (CallToolRequest) -> CallToolResult)

Properties

Link copied to clipboard

A suspend function to handle the tool call requests.

Link copied to clipboard
val tool: Tool

The tool definition.