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) 'experimental': experimental,
if (logging != null) 'logging': logging,
if (prompts != null) 'prompts': prompts,
if (resources != null) 'resources': resources,
if (tools != null) 'tools': tools,
if (elicitation != null) 'elicitation': elicitation,
});