RegisteredPrompt

data class RegisteredPrompt(val prompt: Prompt, val messageProvider: suspend (GetPromptRequest) -> GetPromptResult)(source)

A wrapper class representing a registered prompt on the server.

Constructors

Link copied to clipboard
constructor(prompt: Prompt, messageProvider: suspend (GetPromptRequest) -> GetPromptResult)

Properties

Link copied to clipboard

A suspend function that returns the prompt content when requested by the client.

Link copied to clipboard

The prompt definition.