Class McpPromptArgumentDeclaration.Builder
java.lang.Object
com.soklet.McpPromptArgumentDeclaration.Builder
- Enclosing class:
McpPromptArgumentDeclaration
Mutable builder for an immutable prompt argument declaration.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()description(@NonNull String description) Sets the human-readable argument description.Sets whether the argument is required.Sets the human-readable argument title.
-
Method Details
-
title
Sets the human-readable argument title.- Parameters:
title- human-readable title- Returns:
- this builder
-
description
Sets the human-readable argument description.- Parameters:
description- human-readable description- Returns:
- this builder
-
required
Sets whether the argument is required.- Parameters:
required- whether callers must supply this argument- Returns:
- this builder
- Throws:
NullPointerException- ifrequiredis null
-
build
- Returns:
- immutable prompt argument declaration
-