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

Method HandlePendingElicitation

go/rpc/zrpc.go:17325–17340  ·  view source on GitHub ↗

HandlePendingElicitation provides the user response for a pending elicitation request. RPC method: session.ui.handlePendingElicitation. Parameters: Pending elicitation request ID and the user's response (accept/decline/cancel + form values). Returns: Indicates whether the elicitation response was

(ctx context.Context, params *UIHandlePendingElicitationRequest)

Source from the content-addressed store, hash-verified

17323// Returns: Indicates whether the elicitation response was accepted; false if it was already
17324// resolved by another client.
17325func (a *UIAPI) HandlePendingElicitation(ctx context.Context, params *UIHandlePendingElicitationRequest) (*UIElicitationResult, error) {
17326 req := map[string]any{"sessionId": a.sessionID}
17327 if params != nil {
17328 req["requestId"] = params.RequestID
17329 req["result"] = params.Result
17330 }
17331 raw, err := a.client.Request(ctx, "session.ui.handlePendingElicitation", req)
17332 if err != nil {
17333 return nil, err
17334 }
17335 var result UIElicitationResult
17336 if err := json.Unmarshal(raw, &result); err != nil {
17337 return nil, err
17338 }
17339 return &result, nil
17340}
17341
17342// HandlePendingExitPlanMode resolves a pending `exit_plan_mode.requested` event with the
17343// user's response.

Callers 2

Calls 1

RequestMethod · 0.45

Tested by 1