Interface PromptDescriptor.Builder
- Enclosing interface:
PromptDescriptor
public static interface PromptDescriptor.Builder
Builder for
PromptDescriptor.-
Method Summary
Modifier and TypeMethodDescriptionaddArguments(PromptArgument... elements) Appends arguments accepted by this prompt.arguments(@Nullable Iterable<? extends PromptArgument> elements) Sets the arguments accepted by this prompt.build()Builds thePromptDescriptor.description(@Nullable String description) Sets the optional description of this prompt.extensionId(@Nullable String extensionId) Sets the optional identifier of the extension that owns this prompt.Sets the optional icons for this prompt.inputSchema(@Nullable JsonSchema inputSchema) Sets the optional JSON schema describing the prompt's arguments.default PromptDescriptor.BuilderinputSchema(@Nullable String inputSchema) Sets the optional JSON schema describing the prompt's arguments, parsed from a string.Sets optional protocol extension metadata.Sets the prompt name, unique within the server.Sets the optional human-readable title.
-
Method Details
-
name
Sets the prompt name, unique within the server. -
title
Sets the optional human-readable title. -
description
Sets the optional description of this prompt. -
addArguments
Appends arguments accepted by this prompt. -
arguments
Sets the arguments accepted by this prompt. -
inputSchema
Sets the optional JSON schema describing the prompt's arguments. -
inputSchema
Sets the optional JSON schema describing the prompt's arguments, parsed from a string. -
icons
Sets the optional icons for this prompt. -
extensionId
Sets the optional identifier of the extension that owns this prompt. -
meta
Sets optional protocol extension metadata.- Parameters:
entries- metadata entries, ornullfor none
-
build
PromptDescriptor build()Builds thePromptDescriptor.
-