MCPcopy Create free account
hub / github.com/github/copilot-sdk / HttpResponseStart

Method HttpResponseStart

go/rpc/zrpc.go:12232–12242  ·  view source on GitHub ↗

HttpResponseStart 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. RPC method: llmInference.httpResponseStart. Parameters: Respo

(ctx context.Context, params *LlmInferenceHTTPResponseStartRequest)

Source from the content-addressed store, hash-verified

12230//
12231// Returns: Whether the start frame was accepted.
12232func (a *ServerLlmInferenceAPI) HttpResponseStart(ctx context.Context, params *LlmInferenceHTTPResponseStartRequest) (*LlmInferenceHTTPResponseStartResult, error) {
12233 raw, err := a.client.Request(ctx, "llmInference.httpResponseStart", params)
12234 if err != nil {
12235 return nil, err
12236 }
12237 var result LlmInferenceHTTPResponseStartResult
12238 if err := json.Unmarshal(raw, &result); err != nil {
12239 return nil, err
12240 }
12241 return &result, nil
12242}
12243
12244// SetProvider registers an SDK client as the LLM inference callback provider.
12245//

Callers 1

startMethod · 0.80

Calls 1

RequestMethod · 0.45

Tested by

no test coverage detected