Attributes#
| Attribute | Type | Description |
|---|---|---|
prompt | Prompt | |
annotations | Context[Any] | |
completions | Mapping[str, CompletionHandler] | |
handle | Callable[[Mapping[str, str]], Effect[GetPromptResult | InputRequired, McpError, RequestServices]] | |
services | Context[Any] | None = None |
Functions#
__init__#
__init__(prompt, annotations, completions, handle, services=None) -> None| Parameter | Type | Description |
|---|---|---|
prompt | Prompt | |
annotations | Context[Any] | |
completions | Mapping[str, CompletionHandler] | |
handle | Callable[[Mapping[str, str]], Effect[GetPromptResult | InputRequired, McpError, RequestServices]] | |
services | Context[Any] | None = None |