MCPcopy Index your code
hub / github.com/github/copilot-sdk / request

Method request

python/copilot/generated/rpc.py:25815–25819  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

listMethod · 0.45
listMethod · 0.45
get_quotaMethod · 0.45
get_current_authMethod · 0.45
get_all_usersMethod · 0.45
loginMethod · 0.45
logoutMethod · 0.45
add_filter_valuesMethod · 0.45
listMethod · 0.45
addMethod · 0.45
updateMethod · 0.45
removeMethod · 0.45

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
from_dictMethod · 0.45

Tested by

no test coverage detected