Class ClientCapabilities
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.ClientCapabilities
MCP client capability advertisement carried by RequestMeta.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionElicitation capability.Experimental capability extensions.Schema-defined capability extensions (distinct from the free-formexperimentalbag).getRoots()Roots capability.Sampling capability.putExperimental(String name, Object value) Convenience method to add a single experimental extension entry.putExtensions(String name, Object value) Convenience method to add a single capability extension entry.Sets elicitation capability.setExperimental(Map<String, Object> value) Sets experimental extensions.setExtensions(Map<String, Object> value) Sets capability extensions.setRoots(RootsCapability value) Sets roots capability.setSampling(SamplingCapability value) Sets sampling capability.
-
Constructor Details
-
ClientCapabilities
public ClientCapabilities()
-
-
Method Details
-
getRoots
Roots capability.- Returns:
- The capability, or
nullif not set.
-
setRoots
Sets roots capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getElicitation
Elicitation capability.- Returns:
- The capability, or
nullif not set.
-
setElicitation
Sets elicitation capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getSampling
Sampling capability.- Returns:
- The capability, or
nullif not set.
-
setSampling
Sets sampling capability.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getExperimental
Experimental capability extensions.- Returns:
- The experimental map, or
nullif not set.
-
setExperimental
Sets experimental extensions.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putExperimental
Convenience method to add a single experimental extension entry.- Parameters:
name- The extension name. Can benull (LinkedHashMaptolerates anull key).value- The extension value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-
getExtensions
Schema-defined capability extensions (distinct from the free-formexperimentalbag).- Returns:
- The extensions map, or
nullif not set.
-
setExtensions
Sets capability extensions.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
putExtensions
Convenience method to add a single capability extension entry.The extension map is lazily initialized on first use and preserves insertion order across repeated calls.
- Parameters:
name- The extension name. Can benull (LinkedHashMaptolerates anull key).value- The extension value. Can benull (stored asnull ).- Returns:
- This object (for method chaining).
-