Class McpPromptArgumentDeclaration
java.lang.Object
com.soklet.McpPromptArgumentDeclaration
Immutable declaration of one string-valued MCP prompt argument.
Prompt arguments are not JSON Schema values. A present argument is always delivered to the handler as its exact wire string; Soklet performs no coercion or domain-specific validation.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder for an immutable prompt argument declaration. -
Method Summary
-
Method Details
-
withName
Vends a builder primed with the published argument name.- Parameters:
name- nonblank published argument name- Returns:
- argument-declaration builder
- Throws:
IllegalArgumentException- ifnameis blank
-
getName
-
getTitle
-
getDescription
- Returns:
- human-readable description, if configured
-
isRequired
- Returns:
- whether the argument must be present in
prompts/get
-
equals
-
hashCode
-