Class ElicitationRequests

java.lang.Object
org.apache.juneau.rest.client.mcp.v20260728.ElicitationRequests

public final class ElicitationRequests extends Object
Static helper for reading server→client MCP 2026-07-28 SEP-2322 elicitation requests out of McpClient.callRaw(java.lang.String, org.apache.juneau.bean.mcp.v20260728.RequestParams<?>)'s raw Map<String,Object> result (MRTR, the Multi-Round-Trip Requests loop, client side).

Paired with ElicitationResponses, which encodes the client's answers back into the wire shape a resume call expects — the same ElicitationRequests/ElicitationResponses split the server side already uses (server ElicitationRequests builds the pause signal; server ElicitationResponses reads the resumed answers).

Works at the raw map/JSON level rather than exposing typed overloads per concrete request bean, because CallToolRequest/GetPromptRequest/ReadResourceRequest share no common "has-inputResponses-and-requestState" interface (each independently declares its own pair of fields; their actual common base, RequestParams<T>, carries only _meta). A caller resuming, say, a CallToolRequest calls ElicitationResponses.toInputResponses(Map) for the raw payload, then makes its own .setInputResponses(...).setRequestState(...) call on the concrete bean it already knows it holds.

Since:
10.0.0