Class SessionCompletionsApi
java.lang.Object
com.github.copilot.generated.rpc.SessionCompletionsApi
API methods for the
completions namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the characters that should trigger host-driven completions for the session.Requests host-driven completion items for the current composer input.
-
Method Details
-
getTriggerCharacters
@CopilotExperimental public CompletableFuture<SessionCompletionsGetTriggerCharactersResult> getTriggerCharacters()Gets the characters that should trigger host-driven completions for the session. Empty disables host-driven completions (e.g. local sessions, or a relay host that does not advertise them).- Since:
- 1.0.0
-
request
@CopilotExperimental public CompletableFuture<SessionCompletionsRequestResult> request(SessionCompletionsRequestParams params) 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.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-