Class ElicitResult
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ElicitResult
The end user's answer to an
ElicitRequest (MCP 2026-07-28 SEP-2322), echoed back keyed by the
same server-assigned id in a follow-up request's inputResponses and decoded via
org.apache.juneau.rest.server.mcp.v20260728.ElicitationResponses.
getContent() is present only when getAction() is ElicitAction.ACCEPT; its shape is
whatever ElicitRequest.getRequestedSchema() described, which is per-elicitation and unknowable at the
bean-definition level, so it is deliberately left an untyped, dynamic map.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe end user's choice.The schema-shaped answer content.putContent(String name, Object value) Convenience method to add a single content entry.setAction(ElicitAction value) Sets the end user's choice.setContent(Map<String, Object> value) Sets the schema-shaped answer content.
-
Constructor Details
-
ElicitResult
public ElicitResult()
-
-
Method Details
-
getAction
The end user's choice.- Returns:
- The action, or
nullif not set.
-
setAction
Sets the end user's choice.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getContent
The schema-shaped answer content. Present only whengetAction()isElicitAction.ACCEPT.- Returns:
- The content map, or
nullif not set.
-
setContent
Sets the schema-shaped answer content.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putContent
Convenience method to add a single content entry.- Parameters:
name- The entry name. Can benull (LinkedHashMaptolerates anull key).value- The entry value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-