Class ServerLlmInferenceApi
java.lang.Object
com.github.copilot.generated.rpc.ServerLlmInferenceApi
API methods for the
llmInference namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionDelivers a body byte range (or a terminal transport error) for an in-flight response, correlated by requestId.Delivers the response head (status + headers) for an in-flight request, correlated by the requestId the runtime supplied in httpRequestStart.Registers an SDK client as the LLM inference callback provider.
-
Method Details
-
setProvider
Registers an SDK client as the LLM inference callback provider.- Since:
- 1.0.0
-
httpResponseStart
@CopilotExperimental public CompletableFuture<LlmInferenceHttpResponseStartResult> httpResponseStart(LlmInferenceHttpResponseStartParams params) Delivers the response head (status + headers) for an in-flight request, correlated by the requestId the runtime supplied in httpRequestStart. Must be called exactly once per request before any httpResponseChunk frames.- Since:
- 1.0.0
-
httpResponseChunk
@CopilotExperimental public CompletableFuture<LlmInferenceHttpResponseChunkResult> httpResponseChunk(LlmInferenceHttpResponseChunkParams params) Delivers a body byte range (or a terminal transport error) for an in-flight response, correlated by requestId. Set `end` true on the last chunk. When `error` is set the response terminates with a transport-level failure and the runtime raises an APIConnectionError.- Since:
- 1.0.0
-