ServerCapabilities constructor

ServerCapabilities({
  1. Map<String, Object?>? experimental,
  2. Completions? completions,
  3. Logging? logging,
  4. Prompts? prompts,
  5. Resources? resources,
  6. Tools? tools,
  7. @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,
});