Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "prompts/get")
data class GetPromptRequest(val id: String, val params: GetPromptRequest.GetPromptParams) : JsonRpcRequest
Link copied to clipboard
@Serializable
data class GetPromptResult(val description: String? = null, val messages: List<PromptMessage>, val _meta: Map<String, JsonElement>? = null) : Result
Link copied to clipboard
@Serializable
@SerialName(value = "prompts/list")
data class ListPromptsRequest(val id: String, val params: ListPromptsRequest.ListPromptsParams? = null) : JsonRpcRequest
Link copied to clipboard
@Serializable
data class ListPromptsResult(val prompts: List<Prompt>, val _meta: Map<String, JsonElement>? = null, val nextCursor: String? = null) : PaginatedResult
Link copied to clipboard
@Serializable
data class Prompt(val name: String, val description: String? = null, val arguments: List<PromptArgument>? = null)
Link copied to clipboard
@Serializable
data class PromptArgument(val name: String, val description: String? = null, val required: Boolean = false)

Prompt related structures

Link copied to clipboard
@Serializable
@SerialName(value = "notifications/prompts/list_changed")
data class PromptListChangedNotification(val params: NotificationParams? = null) : JsonRpcNotification

A notification from the server to the client that the list of prompts has changed. The client may issue a prompts/list request to get the updated list.

Link copied to clipboard
@Serializable
data class PromptMessage(val role: Role, val content: PromptContent)