MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / requestQuestion

Function requestQuestion

packages/node-sdk/src/rpc.ts:725–742  ·  view source on GitHub ↗
(
    request: QuestionRequest & { sessionId: string; agentId: string },
  )

Source from the content-addressed store, hash-verified

723 }
724
725 async requestQuestion(
726 request: QuestionRequest & { sessionId: string; agentId: string },
727 ): Promise<QuestionResult> {
728 const handler = this.questionHandlers.get(request.sessionId);
729 if (handler === undefined) return null;
730
731 try {
732 return await handler(request);
733 } catch (error) {
734 this.receiveEvent({
735 type: 'error',
736 sessionId: request.sessionId,
737 agentId: request.agentId,
738 ...makeErrorPayload(ErrorCodes.SESSION_QUESTION_HANDLER_ERROR, errorMessage(error)),
739 });
740 return null;
741 }
742 }
743
744 async toolCall(request: ToolCallRequest): Promise<ToolCallResponse> {
745 return {

Callers

nothing calls this directly

Calls 4

makeErrorPayloadFunction · 0.90
errorMessageFunction · 0.70
getMethod · 0.65
handlerFunction · 0.50

Tested by

no test coverage detected