getHandler method
Implementation
@override
Future<ResponseItem?> Function(ResponsesSessionController controller)? getHandler(ResponseEvent e) {
return switch (e) {
(ResponseOutputItemDone evt) => switch (evt.item) {
(McpCall i) => (c) => _onMcpCall(c, i),
(McpListTools i) => (c) => _onMcpListTools(c, i),
(McpApprovalRequest i) => (c) => onMcpApprovalRequest(c, i),
(McpApprovalResponse i) => (c) => _onMcpApprovalResponse(c, i),
_ => null,
},
(_) => null
};
}