Requests host-driven completion items for the current composer input. Returns an empty list when the host has no items or does not support completions.\n\nArgs:\n params: Request host-driven completions for the current composer input.\n\nReturns:\n Host-driven completion items for the current
(self, params: CompletionsRequestRequest, *, timeout: float | None = None)
| 25813 | return CompletionsGetTriggerCharactersResult.from_dict(await self._client.request("session.completions.getTriggerCharacters", {"sessionId": self._session_id}, **_timeout_kwargs(timeout))) |
| 25814 | |
| 25815 | async def request(self, params: CompletionsRequestRequest, *, timeout: float | None = None) -> CompletionsRequestResult: |
| 25816 | "Requests host-driven completion items for the current composer input. Returns an empty list when the host has no items or does not support completions.\n\nArgs:\n params: Request host-driven completions for the current composer input.\n\nReturns:\n Host-driven completion items for the current composer input. Empty when the host returns no items or does not support completions." |
| 25817 | params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None} |
| 25818 | params_dict["sessionId"] = self._session_id |
| 25819 | return CompletionsRequestResult.from_dict(await self._client.request("session.completions.request", params_dict, **_timeout_kwargs(timeout))) |
| 25820 | |
| 25821 | |
| 25822 | # Experimental: this API group is experimental and may change or be removed. |
no test coverage detected