(
request: QuestionRequest & { sessionId: string; agentId: string },
)
| 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 { |
nothing calls this directly
no test coverage detected