Class ElicitRequest
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ElicitRequest
One entry of an
input_required pause's inputRequests map for an elicitation sub-request (MCP
2026-07-28 SEP-2322), built by a tools/call/prompts/get/resources/read handler
and placed via org.apache.juneau.rest.server.mcp.v20260728.ElicitationRequests.
getRequestedSchema() is a restricted JSON Schema (see
org.apache.juneau.bean.mcp.v20260728.ElicitSchema) describing the expected shape of the end user's
answer; it permits only primitive-typed, non-nested top-level properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe prompt shown to the end user.The restricted JSON Schema describing the expected answer shape.setMessage(String value) Sets the prompt shown to the end user.setRequestedSchema(Map<String, Object> value) Sets the restricted JSON Schema describing the expected answer shape.
-
Constructor Details
-
ElicitRequest
public ElicitRequest()
-
-
Method Details
-
getMessage
The prompt shown to the end user.- Returns:
- The message, or
nullif not set.
-
setMessage
Sets the prompt shown to the end user.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getRequestedSchema
The restricted JSON Schema describing the expected answer shape.- Returns:
- An unmodifiable view of the schema, or
nullif not set.
-
setRequestedSchema
Sets the restricted JSON Schema describing the expected answer shape.- Parameters:
value- The new value, typically built viaElicitSchema.create()....build(). Can benull to unset the property.- Returns:
- This object (for method chaining).
-