Class GetPromptRequest
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.RequestParams<GetPromptRequest>
org.apache.juneau.bean.mcp.v20260728.GetPromptRequest
Parameters for "prompts/get".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArgument values keyed by argument name.Server-assigned-id-keyed map of collected answers to a priorinput_requiredpause, echoed back on a resume call.getName()Prompt name.The opaque continuation token echoed back from a priorinput_requiredresult.putArgument(String name, Object value) Convenience method to add a single argument value.putInputResponse(String id, Object value) Convenience method to add a single collected answer.setArguments(Map<String, Object> value) Sets argument values.setInputResponses(Map<String, Object> value) Sets the collected-answers map.Sets the prompt name.setRequestState(String value) Sets the echoed continuation token.Methods inherited from class org.apache.juneau.bean.mcp.v20260728.RequestParams
getMeta, setMeta
-
Constructor Details
-
GetPromptRequest
public GetPromptRequest()
-
-
Method Details
-
getName
Prompt name.- Returns:
- The name, or
nullif not set.
-
setName
Sets the prompt name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getArguments
Argument values keyed by argument name.- Returns:
- The arguments map, or
nullif not set.
-
setArguments
Sets argument values.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putArgument
Convenience method to add a single argument value.- Parameters:
name- The argument name. Can benull (LinkedHashMaptolerates anull key).value- The argument value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getInputResponses
Server-assigned-id-keyed map of collected answers to a priorinput_requiredpause, echoed back on a resume call.- Returns:
- The map, or
nullif not set.
-
setInputResponses
Sets the collected-answers map.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putInputResponse
Convenience method to add a single collected answer.- Parameters:
id- The server-assigned id. Can benull (LinkedHashMaptolerates anull key).value- The answer value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getRequestState
The opaque continuation token echoed back from a priorinput_requiredresult.- Returns:
- The token, or
nullif not set.
-
setRequestState
Sets the echoed continuation token.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-