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

Class UIHandlePendingElicitationRequest

python/copilot/generated/rpc.py:19039–19060  ·  view source on GitHub ↗

Pending elicitation request ID and the user's response (accept/decline/cancel + form values).

Source from the content-addressed store, hash-verified

19037# Experimental: this type is part of an experimental API and may change or be removed.
19038@dataclass
19039class UIHandlePendingElicitationRequest:
19040 """Pending elicitation request ID and the user's response (accept/decline/cancel + form
19041 values).
19042 """
19043 request_id: str
19044 """The unique request ID from the elicitation.requested event"""
19045
19046 result: UIElicitationResponse
19047 """The elicitation response (accept with form values, decline, or cancel)"""
19048
19049 @staticmethod
19050 def from_dict(obj: Any) -> 'UIHandlePendingElicitationRequest':
19051 assert isinstance(obj, dict)
19052 request_id = from_str(obj.get("requestId"))
19053 result = UIElicitationResponse.from_dict(obj.get("result"))
19054 return UIHandlePendingElicitationRequest(request_id, result)
19055
19056 def to_dict(self) -> dict:
19057 result: dict = {}
19058 result["requestId"] = from_str(self.request_id)
19059 result["result"] = to_class(UIElicitationResponse, self.result)
19060 return result
19061
19062# Experimental: this type is part of an experimental API and may change or be removed.
19063@dataclass

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…