fix: Expose completions capability (#865)

This commit is contained in:
Frédéric Barthelet 2025-07-07 10:26:22 +02:00 • committed by GitHub
commit 906ceea388
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -286,6 +286,12 @@ class LoggingCapability(BaseModel):
model_config = ConfigDict(extra="allow")
class CompletionsCapability(BaseModel):
"""Capability for completions operations."""
model_config = ConfigDict(extra="allow")
class ServerCapabilities(BaseModel):
"""Capabilities that a server may support."""
@ -299,6 +305,8 @@ class ServerCapabilities(BaseModel):
"""Present if the server offers any resources to read."""
tools: ToolsCapability | None = None
"""Present if the server offers any tools to call."""
completions: CompletionsCapability | None = None
"""Present if the server offers autocompletion suggestions for prompts and resources."""
model_config = ConfigDict(extra="allow")