Class ElicitRequest

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ElicitRequest

@Marshalled public class ElicitRequest extends Object
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 Details

  • Method Details

    • getMessage

      public String getMessage()
      The prompt shown to the end user.
      Returns:
      The message, or null if not set.
    • setMessage

      Sets the prompt shown to the end user.
      Parameters:
      value - The new value. Can be null 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 null if not set.
    • setRequestedSchema

      Sets the restricted JSON Schema describing the expected answer shape.
      Parameters:
      value - The new value, typically built via ElicitSchema.create()....build(). Can be null to unset the property.
      Returns:
      This object (for method chaining).