GitHub

PromptEntry

API reference for PromptEntry.

Attributes

AttributeTypeDescription
promptPrompt
annotationsContext[Any]
completionsMapping[str, CompletionHandler]
handleCallable[[Mapping[str, str]], Effect[GetPromptResult | InputRequired, McpError, RequestServices]]
servicesContext[Any] | None = None

Functions

__init__

__init__(prompt, annotations, completions, handle, services=None) -> None
ParameterTypeDescription
promptPrompt
annotationsContext[Any]
completionsMapping[str, CompletionHandler]
handleCallable[[Mapping[str, str]], Effect[GetPromptResult | InputRequired, McpError, RequestServices]]
servicesContext[Any] | None = None