ServerCapabilities constructor
ServerCapabilities({
- Map<
String, Object?> ? experimental, - Completions? completions,
- Logging? logging,
- Prompts? prompts,
- Resources? resources,
- Tools? tools,
- @Deprecated('Do not use, only clients have this capability') Elicitation? elicitation,
Implementation
factory ServerCapabilities({
Map<String, Object?>? experimental,
Completions? completions,
Logging? logging,
Prompts? prompts,
Resources? resources,
Tools? tools,
@Deprecated('Do not use, only clients have this capability')
Elicitation? elicitation,
}) => ServerCapabilities.fromMap({
if (experimental != null) Keys.experimental: experimental,
if (logging != null) Keys.logging: logging,
if (prompts != null) Keys.prompts: prompts,
if (resources != null) Keys.resources: resources,
if (tools != null) Keys.tools: tools,
if (elicitation != null) Keys.elicitation: elicitation,
});