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) 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,
});